From 85417548927cc65d86f5b0c1d94c42d41756832a Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 27 Oct 2024 10:48:01 +0100 Subject: [PATCH] add self signed k8s certificate --- traefik/base/003-certificates.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/traefik/base/003-certificates.yaml b/traefik/base/003-certificates.yaml index 0a92fa2..b31fd18 100644 --- a/traefik/base/003-certificates.yaml +++ b/traefik/base/003-certificates.yaml @@ -25,6 +25,19 @@ spec: - 'mziesel.com' - '*.mziesel.com' --- +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: k8s-mziesel-nl-self-signed-cert +spec: + secretName: k8s-mziesel-nl-self-signed-cert-secret + issuerRef: + name: mziesel-ca-issuer + kind: ClusterIssuer + dnsNames: + - 'k8s.mziesel.nl' + - '*.k8s.mziesel.nl' +--- apiVersion: traefik.io/v1alpha1 kind: TLSStore metadata: @@ -33,3 +46,4 @@ spec: certificates: - secretName: mziesel-nl-wildcard-cert-secret - secretName: mziesel-com-wildcard-cert-secret + - secretName: k8s-mziesel-nl-self-signed-cert-secret