Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.25 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.25 KB

Some important commands to manage ArgoCD

  • Create namespace and install ArgoCD inside k8s cluster.
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
  • Get all the services created by argocd
kubectl get svc -n argocd
  • Open the argocd-server in GUI inside browser by forwarding port
kubectl port-forward -n argocd svc/argocd-server 8000:443
  • Login with a username and password The initial password for the admin account is auto-generated and stored as clear text in the field password in a secret named argocd-initial-admin-secret in your Argo CD installation namespace. You can simply retrieve this password using kubectl:
Default username: admin
  • Get password
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo

image

Create a new app and connect your github repo for the configuration file, leave revision as HEAD. If you are using SSH, then make sure you are adding your private key in Settings->Repositories

  • Sync the application once it is done.