diff --git a/jellyfin/ingress.yaml b/jellyfin/ingress.yaml new file mode 100644 index 0000000..7c501ac --- /dev/null +++ b/jellyfin/ingress.yaml @@ -0,0 +1,28 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: jellyfin-ingress + namespace: jellyfin + annotations: + kubernetes.io/ingress.class: "traefik" + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/compress: "true" + cert-manager.io/issuer: prod-issuer + cert-manager.io/issuer-kind: OriginIssuer + cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com +spec: + tls: + - hosts: + - "*.rogi.casa" + secretName: rogicasa-tls + rules: + - host: jellyfin.rogi.casa + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: jellyfin + port: + number: 80 diff --git a/jellyfin/jellyfin.yaml b/jellyfin/jellyfin.yaml index 35863fa..7904dca 100644 --- a/jellyfin/jellyfin.yaml +++ b/jellyfin/jellyfin.yaml @@ -14,7 +14,7 @@ metadata: spec: type: ClusterIP ports: - - port: 8096 + - port: 80 targetPort: 8096 protocol: TCP name: http diff --git a/qbittorrent/ingress.yaml b/qbittorrent/ingress.yaml new file mode 100644 index 0000000..ffd0b46 --- /dev/null +++ b/qbittorrent/ingress.yaml @@ -0,0 +1,27 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: qbittorrent-ingress + annotations: + kubernetes.io/ingress.class: "traefik" + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/compress: "true" + cert-manager.io/issuer: prod-issuer + cert-manager.io/issuer-kind: OriginIssuer + cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com +spec: + tls: + - hosts: + - "*.rogi.casa" + secretName: rogicasa-tls + rules: + - host: qbittorrent.rogi.casa + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: qbittorrent + port: + number: 80 diff --git a/qbittorrent/qbittorrent.yaml b/qbittorrent/qbittorrent.yaml index 40d041a..c4a6c46 100644 --- a/qbittorrent/qbittorrent.yaml +++ b/qbittorrent/qbittorrent.yaml @@ -94,9 +94,9 @@ metadata: labels: app: qbittorrent spec: - type: NodePort + type: ClusterIP ports: - - port: 6880 + - port: 80 targetPort: 6880 protocol: TCP name: webui