Configure ArgoCD

As the Argo CD has been deployed, we now need to configure argocd-server and then login:

Expose argocd-server

By default argocd-server is not publicaly exposed. For the purpose of this workshop, we will use a Load Balancer to make it usable:

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
ARGOCD_SERVER=`kubectl get svc argocd-server -n argocd -o json | jq --raw-output .status.loadBalancer.ingress[0].hostname`

Login

The initial password is autogenerated with the pod name of the ArgoCD API server:

ARGO_PWD=`kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2`

Using admin as login and the autogenerated password:

 argocd login $ARGOCD_SERVER --username admin --password $ARGO_PWD --insecure

You should get as an output:

 'admin' logged in successfully