wildcard SSL certificates test #1

This commit is contained in:
Mans Ziesel 2024-10-14 20:06:12 +02:00
parent f5a9dcc65f
commit 17c754f357
3 changed files with 38 additions and 2 deletions

View File

@ -0,0 +1,35 @@
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: mziesel-nl-wildcard-cert
spec:
secretName: mziesel-nl-wildcard-cert-secret
issuerRef:
name: cloudflare-issuer
kind: ClusterIssuer
dnsNames:
- mziesel.nl
- *.mziesel.nl
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: mziesel-com-wildcard-cert
spec:
secretName: mziesel-com-wildcard-cert-secret
issuerRef:
name: cloudflare-issuer
kind: ClusterIssuer
dnsNames:
- mziesel.com
- *.mziesel.com
---
apiVersion: traefik.io/v1alpha1
kind: TLSStore
metadata:
name: default
spec:
certificates:
- secretName: mziesel-nl-wildcard-cert-secret
- secretName: mziesel-com-wildcard-cert-secret

View File

@ -11,3 +11,4 @@ resources:
- ./base/002-traefik.yaml
- ./base/002-traefik-services.yaml
- https://raw.githubusercontent.com/traefik/traefik/v3.1/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
- ./base/003-certificates.yaml

View File

@ -22,5 +22,5 @@ spec:
services:
- name: whoami
port: web
tls:
secretName: whoami.mziesel.nl-secret
tls: {}
# secretName: whoami.mziesel.nl-secret