I have used below command to deploy argocd with below commands.
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
After that I changed argocd-server service type to nodeport and ran below command to forward the port.
kubectl port-forward service/argocd-server -n argocd 8081:80 --address 0.0.0.0
Now, I am getting below error while trying to open webpage on browser
This page isn’t working
8081-port-34c559d3d8ca4c26.labs.kodekloud.com redirected you too many times.
[Try deleting your cookies].
ERR_TOO_MANY_REDIRECTS
Hi,
Please try again with: kubectl port-forward svc/argocd-server -n argocd 8081:443
Heya, I ran into the same issue and stumbled upon this thread. After some search, it appeared that ArgoCD is redirecting to HTTPS by default due to TLS termination.
To resolve this, follow the github thread below to set the configmap params. After that I was able to view port and access argocd UI on the playground.
opened 03:00AM - 09 Jan 20 UTC
closed 11:56PM - 09 Oct 23 UTC
component:cli
The following configuration was performed according to the official documentatio… n(https://argoproj.github.io/argo-cd/getting_started/):
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: argocd-server-ingress
annotations:
kubernetes.io/ingress.class: crs-nginx
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
rules:
- host: argocd.gril.com
http:
paths:
- backend:
serviceName: argocd-server
servicePort: 443
now,encounter a redirect loop or are getting a 307 response code.So I added nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" according to the official documentation to the configuration above.
The web page can be opened normally,But I got the following error during argocd login command
`FATA[0008] rpc error: code = Internal desc = transport: received the unexpected content-type "text/plain; charset=utf-8"`
I don't know how to configure it to open the page normally and the argocd login command can log in normally.