Skip to content

To install ArgoCD in another namespace using Helm (the package manager for Kubernetes), you can follow these steps:


  1. Add the ArgoCD Helm Repository: First, you need to add the ArgoCD Helm repository to your Helm CLI. This allows you to fetch the ArgoCD Helm chart from their repository.
helm repo add argo https://argoproj.github.io/argo-helm
  1. Create a Namespace: If the namespace where you want to install ArgoCD doesn't exist, create it using kubectl:
kubectl create namespace <argocd-namespace>

Replace argocd-namespace with your desired namespace name.

  1. Install ArgoCD Helm Chart: Install the ArgoCD Helm chart into the desired namespace using Helm. Be sure to specify the namespace using the --namespace flag:
helm install argocd argo/argo-cd --namespace <argocd-namespace>

This command installs ArgoCD into the argocd-namespace.

  1. Access ArgoCD UI: By default, ArgoCD deploys a LoadBalancer service to expose its UI. Depending on your Kubernetes cluster configuration, you might need to wait for the LoadBalancer to obtain an external IP address. You can check the service's status using:
kubectl get svc -n <argocd-namespace>

ArgoCD Service

Once the external IP address is available, you can access the ArgoCD UI via a web browser using the IP address and port 80.

ArgoCD Port Forwarding

Note: If you're using a local or non-cloud Kubernetes cluster, you might need to use a different method to access the UI, such as port-forwarding, NodePort, or an ingress controller.

  1. Login to ArgoCD: After accessing the ArgoCD UI, you will be prompted to log in. You can log in using the default admin username and password:

  2. Username: admin

  3. Password: Retrieve the password using:

    kubectl get secret argocd-initial-admin-secret -n <argocd-namespace> -o jsonpath="{.data.password}" | base64 -d
    

Copy the password and use it to log in.

  1. Deploy Applications: You can now use the ArgoCD UI or ArgoCD CLI to deploy and manage applications within the argocd-namespace.

ArgoCD Application


ArgoCD Workflow

ArgoCD Workflow

This installation method utilizes Helm to simplify the deployment process for ArgoCD in a specified namespace. Make sure to adjust namespace names and configurations according to your specific requirements.