- Make sure you have a Kubernetes cluster running with ArgoCD installed
- Make sure you have an app deployed in the cluster and tracked by ArgoCD
- Verify the app is tracked by ArgoCD and in sync
- . Make a change to your application by running a
kubectl
command. The change can anything:- Changing the tag of the image
- Changing the number of replicas
- You can go extreme and delete the resource if you would like :)
- Check the app state in ArgoCD
- Sync the app state
- Click on the app in the UI
- Make sure it's in sync and in "healthy" state
- Make a check in the cluster
kubectl scale --replicas=0 <DEPLOYMENT_NAME>
kubectl get rs <DEPLOYMENT_NAME>
- Go back to the UI and check the state of the app
- If it's still in sync, make sure to click on "Refresh"
- The app should be in "out-of-sync" state
- Click on "Sync" and then on "Synchronize"
# Check app state and verify it's in sync
argocd app get app-demo
# Run the following k8s commands (or any other commands that will change the state of your app)
kubectl scale --replicas=0 <DEPLOYMENT_NAME>
kubectl get rs <DEPLOYMENT_NAME>
# Check app state again
argocd app get app-demo
# Sync app state
argocd app sync app-demo
argocd app wait app-demo