File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export ARGOCD_OPTS="--grpc-web"
1313ARGOCD_HEALTH_CHECK_URL=" https://$ARGOCD_FQDN /healthz"
1414
1515# Install
16- VERSION=" v1.8.7 "
16+ VERSION=" v2.0.5 "
1717curl -sSL -o " $ARGOCD_PATH " " https://github.com/argoproj/argo-cd/releases/download/$VERSION /argocd-linux-amd64"
1818chmod +x " $ARGOCD_PATH "
1919
@@ -29,9 +29,10 @@ echo "Showing Argo CD version info for [$ARGOCD_FQDN]..."
2929" $ARGOCD_PATH " version --server " $ARGOCD_FQDN "
3030
3131# Get default admin password
32- # default password is server pod name, eg: "argocd-server-89c6cd7d4-xxxxx"
32+ # Argo CD v1.9 and later: https://argoproj.github.io/argo-cd/getting_started/#4-login-using-the-cli
33+ # check secret called "argocd-initial-admin-secret"
3334echo " Getting default admin password..."
34- DEFAULT_ARGO_ADMIN_PASSWORD=$( kubectl get pods -n argocd -l app.kubernetes.io/name= argocd-server -o name | cut -d' / ' -f 2 )
35+ DEFAULT_ARGO_ADMIN_PASSWORD=$( kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath= " {.data.password} " | base64 -d)
3536
3637# Login
3738echo " Logging in to Argo CD with default password..."
You can’t perform that action at this time.
0 commit comments