Use wildcard cert everywhere!

This commit is contained in:
SeanOMik 2023-04-13 01:21:06 -04:00
parent f2252bd6c8
commit fc5e97e7ae
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
12 changed files with 59 additions and 22 deletions

View File

@ -58,10 +58,14 @@ spec:
cert-manager.io/cluster-issuer: "letsencrypt-production" cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: auth.${SECRET_NEW_DOMAIN} - host: &host "auth.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: "/" - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
monitoring: monitoring:
enabled: false # temporarily disable monitoring enabled: false # temporarily disable monitoring

View File

@ -44,13 +44,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "remote.${SECRET_NEW_DOMAIN}" - host: &host "remote.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:

View File

@ -33,13 +33,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "audiobooks.${SECRET_NEW_DOMAIN}" - host: &host "audiobooks.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:

View File

@ -36,13 +36,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "watch.${SECRET_NEW_DOMAIN}" - host: &host "watch.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:

View File

@ -39,13 +39,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "request.${SECRET_NEW_DOMAIN}" - host: &host "request.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:

View File

@ -30,13 +30,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "books.${SECRET_NEW_DOMAIN}" - host: &host "books.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:
enabled: true enabled: true

View File

@ -32,13 +32,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "comics.${SECRET_NEW_DOMAIN}" - host: &host "comics.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:
enabled: true enabled: true

View File

@ -47,13 +47,16 @@ spec:
main: main:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production" traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.entrypoints: websecure #,plex
hosts: hosts:
- host: "plex.${SECRET_NEW_DOMAIN}" - host: &host "plex.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
config: config:

View File

@ -53,10 +53,14 @@ spec:
cert-manager.io/cluster-issuer: "letsencrypt-production" cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "paste.${SECRET_NEW_DOMAIN}" - host: &host "paste.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
resources: resources:
requests: requests:

View File

@ -49,10 +49,14 @@ spec:
cert-manager.io/cluster-issuer: "letsencrypt-production" cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "upload.${SECRET_NEW_DOMAIN}" - host: &host "upload.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
storage: storage:

View File

@ -36,10 +36,14 @@ spec:
cert-manager.io/cluster-issuer: "letsencrypt-production" cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: "bitwarden.${SECRET_NEW_DOMAIN}" - host: &host "bitwarden.${SECRET_NEW_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls:
- hosts:
- *host
secretName: wildcard-main-tls
persistence: persistence:
data: data:

View File

@ -8,13 +8,13 @@ spec:
secretTemplate: secretTemplate:
annotations: annotations:
replicator.v1.mittwald.de/replicate-to: "traefik,download" replicator.v1.mittwald.de/replicate-to: "traefik,download,media,tools,management,authentik"
duration: 2160h # 90d duration: 2160h # 90d
renewBefore: 360h # 15d renewBefore: 360h # 15d
issuerRef: issuerRef:
name: letsencrypt-staging name: letsencrypt-prod
kind: ClusterIssuer kind: ClusterIssuer
dnsNames: dnsNames: