Add cert manager

This commit is contained in:
Sambo Chea 2021-12-29 10:33:22 +07:00
parent 0b20e0db1b
commit fa0ef34f30
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
2 changed files with 28 additions and 0 deletions

11
k8s/cert-test.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: mp-dev.lb-app.cubetiqdns.net
spec:
secretName: mp-dev.lb-app.cubetiqdns.net
dnsNames:
- mp-dev.lb-app.cubetiqdns.net
issuerRef:
name: letsencrypt-staging
kind: ClusterIssuer

17
k8s/cm-clusterissuer.yaml Normal file
View File

@ -0,0 +1,17 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-production
spec:
acme:
# Remember to update this if you use this manifest to obtain real certificates :)
email: sombochea100@gmail.com
#server: https://acme-staging-v02.api.letsencrypt.org/directory
# To use the production environment, use the following line instead:
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: issuer-letsencrypt-production
solvers:
- http01:
ingress:
class: traefik