strong text I have a kubernetes cluster with argocd installed, and configured the argocd ingress according to https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/ -> kubernetes/ingress-nginx
However I cannot get it to work unless I set
kubernetes.io/ingress.class: nginx
to
kubernetes.io/ingress.class: private
My ingress.yaml before replacement:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-server-ingress
namespace: argocd
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
tls:
- hosts:
- argocd.my.example.domain
secretName: argocd-int
rules:
- host: argocd.my.example.domain
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argocd-server
port:
number: 443
I am fairly new to Kubernetes, so I am wondering what is the difference between the two? I just happened to find that difference when comparing the ingress.yaml to another project but did not find any explanation for it.