Open nutchalum opened 5 years ago
I forgot to add nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
Have you resolved this issue? I have the same problem, but when I tried to use the ingress you posted above together with force-ssl-redirect
flag, the problem persists.
@marian-margeta unfortunately, no
it seems like force-ssl-redirect
has nothing to do with this
I just went back to use a simple sub-domain instead of a path
I'm also seeing this
Think we could get this added to the 1.4 milestone? This is kind of a blocker for my team.
@goldsam would you be interested in submitting a PR?
For those needing it i solved it like ( I am serving it under /argocd/)
On install.yaml argocd-server
- command:
- argocd-server
- --staticassets
- /shared/app
- --insecure
- --basehref
- /{{argocd_path}}
- --rootpath
- /{{argocd_path}}
name: argocd-server
and Nginx-Ingress will be:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: argocd-server-http-ingress
namespace: {{argocd_ns}}
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/rewrite-target: /{{argocd_path}}/$2
spec:
rules:
- http:
paths:
- backend:
serviceName: argocd-server
servicePort: http
path: /{{argocd_path}}(/|$)(.*)
host: {{services_subdomain}}.{{environment_domain}}
tls:
- hosts:
- {{services_subdomain}}.{{environment_domain}}
secretName: {{argocd_secret}} # do not change, this is provided by Argo CD
If i don't do that like that (bashref and rootpath are different I was getting a warning on argocd-server pods)
For those needing it i solved it like ( I am serving it under /argocd/)
On install.yaml argocd-server
- command: - argocd-server - --staticassets - /shared/app - --insecure - --basehref - /{{argocd_path}} - --rootpath - /{{argocd_path}} name: argocd-server
and Nginx-Ingress will be:
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: argocd-server-http-ingress namespace: {{argocd_ns}} annotations: kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/backend-protocol: "HTTP" nginx.ingress.kubernetes.io/rewrite-target: /{{argocd_path}}/$2 spec: rules: - http: paths: - backend: serviceName: argocd-server servicePort: http path: /{{argocd_path}}(/|$)(.*) host: {{services_subdomain}}.{{environment_domain}} tls: - hosts: - {{services_subdomain}}.{{environment_domain}} secretName: {{argocd_secret}} # do not change, this is provided by Argo CD
If i don't do that like that (bashref and rootpath are different I was getting a warning on argocd-server pods)
This solution worked for me. thanks
Checklist:
argocd version
.Describe the bug When using --basehref such as
/cd
with ingress nginx causes a frontend with an inifinite loopnotice that there's
/cd/cd
when redirect to login which cause the loopA clear and concise description of what the bug is.
To Reproduce
--basehref
/cd
Version 1.3.0