Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. This guide will help you deploy Argo CD on your Kubernetes cluster and use it to manage your applications.
- A running Kubernetes cluster
kubectl
command-line tool installed and configured to interact with your clusterhelm
command-line tool installed (optional, but recommended for easier installation)
-
Create the Argo CD namespace:
kubectl create namespace argocd
-
Install Argo CD components:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
To access the Argo CD API server, use port forwarding:
kubectl port-forward svc/argocd-server -n argocd 8080:443
Open your browser and navigate to https://localhost:8080
.
The initial password for the admin
account is auto-generated and stored in a Kubernetes secret. To retrieve it, run:
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
You can log in to Argo CD using the argocd
CLI:
-
Install the Argo CD CLI: Download the appropriate version of the Argo CD CLI from the releases page.
-
Login to Argo CD:
argocd login localhost:8080
When prompted, use
admin
as the username and the password retrieved earlier.
-
Open the Web UI: Navigate to
https://localhost:8080
in your browser. -
Login: Use
admin
as the username and the password retrieved earlier.
kubectl apply -f argocd/application.yaml
- Open the Web UI:
Navigate to
https://localhost:8080
in your browser and check the status of application.