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