feat: switch to Let's Encrypt cert via cert-manager
This commit is contained in:
14
cert-manager/clusterissuer.yaml
Normal file
14
cert-manager/clusterissuer.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-prod
|
||||
spec:
|
||||
acme:
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
email: ryan@lunarfront.tech
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt-prod-key
|
||||
solvers:
|
||||
- http01:
|
||||
ingress:
|
||||
ingressClassName: nginx
|
||||
@@ -78,13 +78,14 @@ ingress:
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
hosts:
|
||||
- host: git.lunarfront.tech
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- secretName: cloudflare-origin-cert
|
||||
- secretName: git-lunarfront-tech-tls
|
||||
hosts:
|
||||
- git.lunarfront.tech
|
||||
|
||||
|
||||
Reference in New Issue
Block a user