ArgoCD can be installed in multiple ways, depending on your environment and requirements. The main methods include:
- Download the YAML manifests for ArgoCD and apply them directly to your Kubernetes cluster.
- Simple and quick.
- No additional tools required.
- Limited customization during installation.
Example:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/ install.yaml
- Install ArgoCD using the Helm package manager.
- Highly customizable.
- Integrates well with CI/CD pipelines.
- Requires Helm installed.
Example:
helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
helm install argocd argo/argo-cd -n argocd --create-namespace
- Clone the ArgoCD repository and customize the installation using kustomize.
- Ideal for advanced users needing a declarative setup.
- Slightly more complex than
kubectl
.
Example:
git clone https://github.com/argoproj/argo-cd.git
cd argo-cd
kubectl apply -k overlays/stable
- Use tools like Terraform to provision ArgoCD alongside other Kubernetes resources
- Infrastructure as Code (IaC) for better repeatability.
- Requires Terraform knowledge.
Example:
resource "helm_release" "argocd" {
name = "argocd"
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
}