wildcard SSL certificates test #1
This commit is contained in:
parent
f5a9dcc65f
commit
17c754f357
35
traefik/base/003-certificates.yaml
Normal file
35
traefik/base/003-certificates.yaml
Normal 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
|
@ -11,3 +11,4 @@ resources:
|
|||||||
- ./base/002-traefik.yaml
|
- ./base/002-traefik.yaml
|
||||||
- ./base/002-traefik-services.yaml
|
- ./base/002-traefik-services.yaml
|
||||||
- https://raw.githubusercontent.com/traefik/traefik/v3.1/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
|
- https://raw.githubusercontent.com/traefik/traefik/v3.1/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
|
||||||
|
- ./base/003-certificates.yaml
|
||||||
|
@ -22,5 +22,5 @@ spec:
|
|||||||
services:
|
services:
|
||||||
- name: whoami
|
- name: whoami
|
||||||
port: web
|
port: web
|
||||||
tls:
|
tls: {}
|
||||||
secretName: whoami.mziesel.nl-secret
|
# secretName: whoami.mziesel.nl-secret
|
||||||
|
Loading…
Reference in New Issue
Block a user