Simple ArgoCD GitOps demo following TechWorld with Nana's YouTube course.
- Kubernetes cluster (local or cloud)
- kubectl configured and connected to your cluster
- Git repository access
├── application.yaml # ArgoCD Application configuration
└── dev/
├── deployment.yaml # Kubernetes Deployment
└── service.yaml # Kubernetes Service
-
Create namespace:
kubectl create namespace argocd
-
Install ArgoCD:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
-
Access ArgoCD UI:
kubectl port-forward svc/argocd-server -n argocd 8080:443
-
Get admin password:
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
Apply the ArgoCD application:
kubectl apply -f application.yaml- Image:
nanajanashia/argocd-app:1.2 - Replicas: 2
- Port: 8080
- Namespace: myapp (auto-created)
- Sync Policy: Automated with prune and self-heal