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