From 09fbb9ec2999d67986bcff11d6c89c1bf150fb92 Mon Sep 17 00:00:00 2001 From: Finn Date: Thu, 18 Jul 2024 01:07:52 -0700 Subject: [PATCH] Add traefik default certificate --- k8s/system/kustomization.yaml | 6 ++++++ k8s/system/traefik-default-cert.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 k8s/system/kustomization.yaml create mode 100644 k8s/system/traefik-default-cert.yaml diff --git a/k8s/system/kustomization.yaml b/k8s/system/kustomization.yaml new file mode 100644 index 0000000..465b523 --- /dev/null +++ b/k8s/system/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - secrets.yaml + - traefik-default-cert.yaml + diff --git a/k8s/system/traefik-default-cert.yaml b/k8s/system/traefik-default-cert.yaml new file mode 100644 index 0000000..d6db219 --- /dev/null +++ b/k8s/system/traefik-default-cert.yaml @@ -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'