argocd deploying applications commonly used commands

We meed to install argocd :-

kubectl create namespace argocd

kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Make sure we have argocd app server up and running

kubectl port-forward svc/argocd-server -n argocd 8080:443

To create a temporarily initial password to login

argocd admin initial-password -n argocd

To login to argocd run the following commands:- 

argocd login localhost:8080

Lets create an app 

argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default

Then sync the code changes :- 

argocd app sync guestbook

To list the app

argocd app list 

Get the app in details

argocd app get guestbook

To disable sync 

argocd app set  guestbook --sync-policy manual

To terminate sync  

argocd app terminate-op cert-manager-dev

To sync with dry-run option
argocd app sync cert-manager-dev --dry-run

Comments

Popular posts from this blog

gemini cli getting file not defined error

mongosh install properly