Open mravily opened 1 year ago
same question
I have a similar problem: I get a redirect loop when configuring networking.k8s.io/v1/Ingress with a custom domain and tls from cert-manager
server.insecure: "true"
is configed in cmtry this use ingress-nginx
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTP
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
name: dev-argocd-ingress
namespace: argocd
spec:
ingressClassName: nginx
rules:
- host: argocd.example.io
http:
paths:
- backend:
service:
name: argocd-server
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- argocd.example.io
secretName: argocd-secret
https://argocd.example.io
- make sure
server.insecure: "true"
is configed in cm
Already did that
2. try this use ingress-nginx
I've seen it in the docs, but I'm just starting with k8s and I've no idea how to do it. Should I replace the built-in Traefik LB or add nginx as a second one?
- make sure
server.insecure: "true"
is configed in cmAlready did that
2. try this use ingress-nginx
I've seen it in the docs, but I'm just starting with k8s and I've no idea how to do it. Should I replace the built-in Traefik LB or add nginx as a second one?
you can show your ingress cm
2. try this use ingress-nginx
I've seen it in the docs, but I'm just starting with k8s and I've no idea how to do it. Should I replace the built-in Traefik LB or add nginx as a second one?
you can show your ingress cm
I don't have any ConfigMaps for Ingress. All I have for is
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd
namespace: argocd
spec:
tls:
- secretName: apps-tls
rules:
- host: argocd.apps.dev.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argocd-server
port:
name: http
Reference in new
This configuration seems fine, but I don't know about traefik. you can try delete argocd-server pod, in case of the argocd server doesn't use insecure config.
Reference in new
This configuration seems fine, but I don't know about traefik. you can try delete argocd-server pod, in case of the argocd server doesn't use insecure config.
Thank you for looking at it. Interestingly, there is traefik svclb pod for Grafana, with pretty much identical ingress configuration, but not for argocd.
I get this err with emissary-ingress.
Same problem with nginx controller and metallb. Only works when using default / rootpath.
Same here with nginx-ingress controller
same problem even using port-forward. ArgoCD v.2.10.9
Just enabling basehref
and rootpath
causes redirect loop to login page
configs:
params:
server.insecure: true
server.basehref: '/argocd'
server.rootpath: '/argocd'
otherwise works well (with port-forwarding)
With Ingress just having Internal Server Error page
is there still no resolution to this? it's happening with kubernetes' nginx-ingress controller too.
side note: if you allow the path to stay as /
and leave the default settings in the values.yaml file (for helm installs) it works.. but as soon as you want to use ANYTHING ELSE, it starts a loop
Discussed in https://github.com/argoproj/argo-cd/discussions/12175