This guide provides a step-by-step tutorial on setting up Argo CD for GitOps on Kubernetes.
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get pods -n argocd -w
kubectl get svc -n argocd
Change the ClusterIP of the argocd-server service to NodePort to access Argo CD from your browser.
kubectl edit svc argocd-server -n argocd
_Change `ClusterIP` to `NodePort`_
kubectl get svc -n argocd -o wide
Open the UI in your browser at the Node IP and port:
![]()
List secrets to find the admin password:
kubectl get secret -n argocd
Extract the password:
kubectl edit secret argocd-initial-admin-secret -n argocd
Copy the password in base64 and decode it:
echo <password==> | base64 --decode
# Example:
echo OGFWSURuSWNvcTJzMW40Mw== | base64 --decode- Username:
admin - Password: (your decoded password)
Example repo: argoproj/argocd-example-apps/guestbook
- Tip: HEAD is set so that it automatically triggers on the latest commit.
This is how it looks after setup:
Expanded view:
See the full project status, from service files to pod deployment.
kubectl get pods -n argocd
kubectl get svc
kubectl port-forward svc/guestbook-ui 8080:80