Add cert manager
This commit is contained in:
parent
0b20e0db1b
commit
fa0ef34f30
11
k8s/cert-test.yaml
Normal file
11
k8s/cert-test.yaml
Normal 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
17
k8s/cm-clusterissuer.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user