Difference between revisions of "Kubernetes/ArgoCD"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
curl -L https://github.com/${REPO}/releases/download/v${LATEST}/${REPO_FILE} -o ${TEMPDIR}/${BINARY} | curl -L https://github.com/${REPO}/releases/download/v${LATEST}/${REPO_FILE} -o ${TEMPDIR}/${BINARY} | ||
sudo install ${TEMPDIR}/${BINARY} /usr/local/bin/${BINARY} | sudo install ${TEMPDIR}/${BINARY} /usr/local/bin/${BINARY} | ||
</source> | |||
= Login = | |||
<source lang=bash> | |||
ARGOCD_SERVER=argocd.acme.com | |||
ARGOCD_ADMINPASSWORD=$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d) | |||
# Usual login | |||
argocd login $ARGOCD_SERVER --username admin --password $ARGOCD_ADMINPASSWORD --grpc-web | |||
# Behind a proxy or ArgoCD is configured only on port 80 (never worked) | |||
argocd login argocd.acme.com --username admin --password $ARGOCD_ADMINPASSWORD --plaintext --port-forward --port-forward-namespace argocd | |||
'admin:login' logged in successfully | |||
Context 'port-forward' updated | |||
</source> | |||
</source> | </source> |
Revision as of 12:57, 8 June 2022
Install cli
Note: Requires jq
REPO=argoproj/argo-cd REPO_FILE=argocd-linux-amd64 BINARY=argocd LATEST=$(curl --silent "https://api.github.com/repos/${REPO}/releases/latest" | jq -r .tag_name | tr -d v); echo ${LATEST} TEMPDIR=$(mktemp -d) curl -L https://github.com/${REPO}/releases/download/v${LATEST}/${REPO_FILE} -o ${TEMPDIR}/${BINARY} sudo install ${TEMPDIR}/${BINARY} /usr/local/bin/${BINARY}
Login
ARGOCD_SERVER=argocd.acme.com ARGOCD_ADMINPASSWORD=$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d) # Usual login argocd login $ARGOCD_SERVER --username admin --password $ARGOCD_ADMINPASSWORD --grpc-web # Behind a proxy or ArgoCD is configured only on port 80 (never worked) argocd login argocd.acme.com --username admin --password $ARGOCD_ADMINPASSWORD --plaintext --port-forward --port-forward-namespace argocd 'admin:login' logged in successfully Context 'port-forward' updated
</source>