Add traefik default certificate
This commit is contained in:
parent
ed90e1e7cc
commit
09fbb9ec29
2 changed files with 30 additions and 0 deletions
6
k8s/system/kustomization.yaml
Normal file
6
k8s/system/kustomization.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- secrets.yaml
|
||||||
|
- traefik-default-cert.yaml
|
||||||
|
|
24
k8s/system/traefik-default-cert.yaml
Normal file
24
k8s/system/traefik-default-cert.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: TLSStore
|
||||||
|
metadata:
|
||||||
|
name: default
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
defaultCertificate:
|
||||||
|
secretName: default-certificate
|
||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: traefik-default
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
issuerRef:
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: letsencrypt
|
||||||
|
secretName: default-certificate
|
||||||
|
dnsNames:
|
||||||
|
- '*.k8s.home.finn.io'
|
||||||
|
- '*.home.finn.io'
|
||||||
|
- '*.finn.io'
|
||||||
|
- '*.janky.solutions'
|
Loading…
Reference in a new issue