Introduction to Argo CD: GitOps Continuous Delivery for Kubernetes
Argo CD (short for Argo Continuous Delivery) helps teams manage Kubernetes deployments using Git repositories as the source of truth. If you’re working with Kubernetes and want a streamlined, automated CI/CD solution, Argo CD is a must-learn tool.
🛠️ Installation Steps
1. Install Argo CD
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
2. Access Argo CD UI
kubectl port-forward svc/argocd-server -n argocd 8080:443
3. Get Admin Password
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d
4. Install CLI
brew install argocd
choco install argocd
5. Login via CLI
argocd login localhost:8080 --username admin --password YOUR_PASSWORD
6. Register Cluster
argocd cluster add CONTEXT_NAME
7. Create an App
argocd app create my-app \
--repo https://github.com/your/repo.git \
--path k8s \
--dest-server https://kubernetes.default.svc \
--dest-namespace default
8. Sync the App
argocd app sync my-app
9. Get Status
argocd app list
argocd app get my-app