Force the nginx ingress to connect to argocd backend using HTTPS

This commit is contained in:
Khue Doan 2021-08-23 02:59:58 +07:00
parent 6225339f0e
commit 10bca6eed9

View File

@ -5,6 +5,7 @@ metadata:
labels: labels:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true" nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
cert-manager.io/issuer: "letsencrypt-staging" cert-manager.io/issuer: "letsencrypt-staging"
spec: spec:
rules: rules:
@ -17,8 +18,8 @@ spec:
service: service:
name: argocd-server name: argocd-server
port: port:
number: 443 name: https
tls: tls:
- secretName: argocd-tls-certificate - hosts:
hosts:
- argocd.khuedoan.com - argocd.khuedoan.com
secretName: argocd-secret