From 60667f1ef01c1a770727bb580784d9ea94483c64 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 27 Feb 2024 23:38:41 -0800 Subject: [PATCH] Common tls configuration setup however I cant load the new domain with it --- .../letsencrypt-certificate.yaml | 0 .../letsencrypt-issuer.yaml | 0 infra/vultr-kubernetes/k8s/tls.yaml | 29 +++++++++++++++++++ 3 files changed, 29 insertions(+) rename infra/vultr-kubernetes/k8s/{temprah-lab.xyz => }/letsencrypt-certificate.yaml (100%) rename infra/vultr-kubernetes/k8s/{temprah-lab.xyz => }/letsencrypt-issuer.yaml (100%) create mode 100644 infra/vultr-kubernetes/k8s/tls.yaml diff --git a/infra/vultr-kubernetes/k8s/temprah-lab.xyz/letsencrypt-certificate.yaml b/infra/vultr-kubernetes/k8s/letsencrypt-certificate.yaml similarity index 100% rename from infra/vultr-kubernetes/k8s/temprah-lab.xyz/letsencrypt-certificate.yaml rename to infra/vultr-kubernetes/k8s/letsencrypt-certificate.yaml diff --git a/infra/vultr-kubernetes/k8s/temprah-lab.xyz/letsencrypt-issuer.yaml b/infra/vultr-kubernetes/k8s/letsencrypt-issuer.yaml similarity index 100% rename from infra/vultr-kubernetes/k8s/temprah-lab.xyz/letsencrypt-issuer.yaml rename to infra/vultr-kubernetes/k8s/letsencrypt-issuer.yaml diff --git a/infra/vultr-kubernetes/k8s/tls.yaml b/infra/vultr-kubernetes/k8s/tls.yaml new file mode 100644 index 0000000..afcc7fc --- /dev/null +++ b/infra/vultr-kubernetes/k8s/tls.yaml @@ -0,0 +1,29 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: sample.temprah-lab.xyz + namespace: default +spec: + secretName: sample.temprah-lab.xyz-tls + issuerRef: + name: letsencrypt-prod + kind: ClusterIssuer + commonName: sample.temprah-lab.xyz + dnsNames: + - sample.temprah-lab.xyz +--- +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt-prod + namespace: default +spec: + acme: + server: https://acme-v02.api.letsencrypt.org/directory + email: dev@shockrah.xyz + privateKeySecretRef: + name: letsencrypt-prod + solvers: + - http01: + ingress: + class: traefik