Watch all our Tutorials and Training Videos for Free on our Youtube Channel, Get Online Web Tools for Free on swebtools.com

Search Suggest

Deploy Helm Application with ArgoCD

Deploy Helm Application with ArgoCD, argocd helm, helm argocd, deploy argocd with helm, deployment argocd, argocd deployment, deploy helm with argocd
Deploy Helm Application with ArgoCD

ArgoCD is a popular tool for Continuous Deployment (CD) of Kubernetes applications. It allows users to automate the deployment and management of applications in a Kubernetes cluster. Helm is a popular package manager for Kubernetes, which helps in installing, upgrading, and managing applications. In this article, we will learn how to deploy a Helm chart using ArgoCD.

Table of Contents

  1. Pre-requisites
  2. Installing ArgoCD
  3. Configuring ArgoCD
  4. Deploying Helm Chart with ArgoCD
  5. Verifying the Deployment

Pre-requisites:

  • A Kubernetes cluster
  • Helm installed on the local system
  • kubectl installed on the local system

Installing ArgoCD:

  1. Create a namespace for ArgoCD:
    kubectl create namespace argocd
  2. Add the ArgoCD repository to the Helm client:
    helm repo add argo https://argoproj.github.io/argo-helm
  3. Install ArgoCD using Helm:
    helm install argocd argo/argo-cd -n argocd

Configuring ArgoCD:

  1. Get the ArgoCD admin password:
    kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
  2. Login to the ArgoCD Web UI using the admin password:
    argocd login <ARGOCD_SERVER> --username=admin --password=<ARGOCD_PASSWORD>
  3. Create a new application using the ArgoCD Web UI, by specifying the Helm chart location, values file, and target namespace.

Deploying Helm Chart with ArgoCD:

  1. Create a Helm values file with the required configuration:
    cat <<EOF > values.yaml
    replicaCount: 3
    image:
    repository: nginx
    tag: stable
    pullPolicy: IfNotPresent
    service:
    name: nginx
    type: ClusterIP
    port: 80
    EOF
  2. Install the Helm chart using the values file:
    helm install nginx stable/nginx -f values.yaml
  3. Sync the ArgoCD application to deploy the Helm chart:
    argocd app sync <APP_NAME>

Verifying the Deployment:

  1. Get the list of pods in the target namespace:
    kubectl get pods -n <NAMESPACE>
  2. Check the logs of the deployed application:
    kubectl logs <POD_NAME> -n <NAMESPACE>

In this article, we learned how to deploy a Helm chart using ArgoCD. With ArgoCD, we can automate the deployment and management of Helm applications in a Kubernetes cluster. We also learned how to configure ArgoCD and deploy a sample Helm chart using a values file. With ArgoCD, we can ensure that our Kubernetes applications are deployed and managed in a consistent and efficient manner.

Related Searches and Questions asked:

  • How to Configure ArgoCD: A Comprehensive Guide
  • ArgoCD Disaster Recovery: Ensuring Smooth Operations in the Event of Data Loss
  • Installing ArgoCD on Kubernetes
  • ArgoCD Kustomize Example: Deploying Applications with Ease
  • That's it for this post. Keep practicing and have fun. Leave your comments if any.