DevOps / ArgoCD interview questions
How do you install ArgoCD on a Kubernetes cluster?
The standard installation uses the official ArgoCD manifest published in the ArgoCD GitHub repository. There are two variants: non-HA (single replica, suitable for development) and HA (multiple replicas for the API server and application controller, for production).
# Create the argocd namespace kubectl create namespace argocd # Install ArgoCD (non-HA) kubectl apply -n argocd -f \ https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
After applying, verify all pods reach Running state:
kubectl get pods -n argocd
By default, the argocd-server Service is of type ClusterIP. To access the UI locally, use port-forwarding:
kubectl port-forward svc/argocd-server -n argocd 8080:443
The initial admin password is auto-generated and stored in the secret argocd-initial-admin-secret. Retrieve it with:
kubectl -n argocd get secret argocd-initial-admin-secret \ -o jsonpath={.data.password}" | base64 -d
Log in via CLI:
argocd login localhost:8080 --username admin --password <password> --insecure
For production expose argocd-server via an Ingress or LoadBalancer Service with a valid TLS certificate. The Helm chart (argo/argo-cd) is an alternative installation method that provides easier configuration management.
More Related questions...