Listen to this Post

ArgoCD is a powerful GitOps tool that simplifies Kubernetes deployments by using Git repositories as the source of truth. This guide walks through deploying a voting application using ArgoCD and Kubernetes, making it easier to manage configurations and automate deployments.
You Should Know:
Prerequisites
- Kubernetes Cluster: Minikube or a cloud-based cluster (EKS, GKE, AKS).
- kubectl: Configured to interact with your cluster.
- ArgoCD CLI: Installed for managing deployments.
Step 1: Install ArgoCD
kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
Step 2: Access the ArgoCD UI
kubectl port-forward svc/argocd-server -n argocd 8080:443
Visit `https://localhost:8080` (default credentials: `admin` / password retrieved via):
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
Step 3: Deploy the Voting App
1. Fork the Voting App Repo:
git clone https://github.com/example/voting-app-argocd.git
2. Create an ArgoCD Application:
argocd app create voting-app \ --repo https://github.com/example/voting-app-argocd.git \ --path manifests \ --dest-server https://kubernetes.default.svc \ --dest-namespace default
3. Sync the Application:
argocd app sync voting-app
Step 4: Verify Deployment
kubectl get pods,svc -n default
Access the voting app via the exposed service.
Key Commands for Troubleshooting
- Check ArgoCD Logs:
kubectl logs -n argocd -l app.kubernetes.io/name=argocd-server
- Rollback a Failed Deployment:
argocd app rollback voting-app <REVISION>
What Undercode Say
ArgoCD streamlines Kubernetes deployments by enforcing Git-based workflows, reducing manual errors, and enabling easy rollbacks. Combining it with Kubernetes best practices (like declarative manifests) ensures scalable and maintainable infrastructure.
Prediction
As GitOps adoption grows, expect tighter integration between CI/CD pipelines and Git-based deployment tools like ArgoCD, further automating cloud-native workflows.
Expected Output:
- ArgoCD dashboard showing the `voting-app` in sync.
- Accessible voting application via Kubernetes service.
URL: aws.plainenglish.io
References:
Reported By: Darryl Ruggles – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅


