I have installed argocd on aks using below command:
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/master/manifests/install.yaml
Then I change it to load balancer service.
kubectl edit svc argocd-server -n argocd
Now, when I connect to argocd web ui, I wasm’t able to connect with below credentials.
user: admin password: argocd-server-9b77b6575-ts54n
Password got from below command as mentioned in docs.
kubectl get po -n argocd
NAME READY STATUS RESTARTS AGE
argocd-application-controller-0 1/1 Running 0 21m
argocd-dex-server-5559bc9679-5mj4v 1/1 Running 1 21m
argocd-redis-74d8c6db65-sxbnt 1/1 Running 0 21m
argocd-repo-server-6866f58df-m59sr 1/1 Running 0 21m
argocd-server-9b77b6575-ts54n 1/1 Running 0 21m
Please suggest me how to login, what is the default credentials.
Even I tried resetting it using this command.
kubectl -n argocd patch secret argocd-secret -p '{"stringData": {
"admin.password": "$2a$10$Ix3Pd7mywOwVWOK8eSSY0uo60V6Vf6DtZljGuLwGRHQNnWNBbOLhW",
"admin.passwordMtime": "'$(date +%FT%T%Z)'"
}}'
But getting this error:
Error from server (BadRequest): invalid character 's' looking for beginning of object key string
Error from server (NotFound): secrets "2021-07-08T12:59:15IST" not found
Error from server (NotFound): secrets "n }}" not found
7
Answers
You get the password by typing
With
kubectl get pods
you get the pod name, not the password.It is common that applications save the password into a Kubernetes Secret. The secret values are base64 encoded, so to update the secret it has to be valid base64
echo newpassword | base64
. Allthough keep in mind updating the secret does not change the application password.user:
admin
To get the password, type the command below:
A solution to this (Local ArgoCD setup)👇🏼
That will reset the password to the pod name.
i.e login:
That should work.
Visit https://github.com/argoproj/argo-cd/blob/master/docs/faq.md
your new password is "password"
To change the password, edit the argocd-secret secret and update the admin.password field with a new bcrypt hash.
Using tools like Rancher or Lens (or OpenLens), you can see the secrets.
You may find the Argocd admin password is in a
argocd-initial-admin-secret
secret (at least for Argocd v2.3.3) :OpenLens :
Rancher :
Initial password could also be retrieved using the
argocd
CLI. Related documentationhomebrew
):