Ravindra BagaleCourses & study guides मराठी

Chapter 86: Argo CD (GitOps)

DevOps

86.10 Lab — private Git to Argo sync to auto sync

Story. You help a Zomato-style city menu API in Kolkata. Costs are tracked in INR. Your job on kind: install Argo CD, point at a Gitea or GitLab deploy repo (or a local Git server you control), sync menu-api, change replicas in Git, and watch automated sync apply it — without kubectl apply from your laptop.

Lab steps

  1. Confirm kubectl get nodes on kind or Minikube.
  2. Download official install.yaml from Argo CD Getting Started docs; apply into namespace argocd.
  3. Wait for kubectl -n argocd get pods to show Running.
  4. Port-forward argocd-server and log in; change the admin password.
  5. Put a tiny Deployment + Service YAML in a Git repo you own (Gitea/GitLab/forge). Path example: apps/menu-api.
  6. Register that repo in Argo CD (SSH deploy key or HTTPS token).
  7. Create Application menu-api with destination namespace menu and CreateNamespace=true.
  8. Run argocd app sync menu-api and kubectl get pods -n menu.
  9. Set automated sync with self-heal: argocd app set menu-api --sync-policy automated --self-heal.
  10. Commit a replica change in Git. Wait. Confirm pods scale without laptop kubectl apply.
  11. Optional: kubectl edit the Deployment; confirm self-heal restores Git.

What good looks like

  • Application Sync Status is Synced and Health is Healthy after step 8.
  • After the Git commit, Argo CD shows a new sync without you running kubectl apply.
  • You can explain OutOfSync versus Degraded to a friend.

Do the lab with your own Git host. Watching a UI demo is not the same as fixing a ComparisonError yourself.

Did you understand? Let us try it once more.