Home NewsX Installation of Argo CD – Microsoft Community Hub

Installation of Argo CD – Microsoft Community Hub

by info.odysseyx@gmail.com
0 comment 2 views


Argo CD installation

Argo CD is a declarative GitOps continuous delivery tool for Kubernetes. You can use a Kubernetes manifest to define the desired state of your application and automatically synchronize it with your cluster. Argo CD also provides a web UI and CLI to monitor and manage your deployment.

To install Argo CD on Azure, you need the following prerequisites:

– Azure subscription and active Azure account

– Azure Kubernetes Service (AKS) cluster with two or more nodes and RBAC enabled.

– Azure CLI and kubectl command line tools installed on your local machine.

– Helm package manager installed on your local computer.

The installation steps are as follows:

  1. Create an AKS cluster with the following settings:

VidyaSV_0-1729154889145.png

VidyaSV_1-1729154889151.png

VidyaSV_2-1729154889156.png

VidyaSV_3-1729154889160.png

VidyaSV_4-1729154889163.png

VidyaSV_5-1729154889168.png

VidyaSV_6-1729154889172.png

  1. Log in to the subscription in which your AKS cluster was created using the command below.

Az Account Sets – Subscriptions

  1. Install ArgoCD within the cluster

A Kubernetes namespace provides scope for pods, services, and deployments within a cluster. This prevents users working within one namespace from seeing content in other namespaces. In a Kubernetes cluster, namespaces help partition resources and isolate workloads to act as virtual clusters within a physical cluster. This allows multiple teams or projects to operate independently.

Install the Argo CD within the cluster.

  1. Create a namespace for Argo CD.

kubectl creates the namespace argocd.

  1. Install Argo CD into the created namespace.

kubectl apply -n argocd -f [URL]

URL à https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

VidyaSV_7-1729154889182.png

VidyaSV_8-1729154889187.png

  1. Argo CD resource has been created. To check Pod status, use the following command:

kubectl get pod -n argocd

VidyaSV_9-1729154889198.png

Argo CD monitors Git repositories for changes. Argo CD automatically updates GitOps tools when changes are detected. These changes are reflected in your Kubernetes cluster.

To log in to the Argo CD platform, follow these steps:

  1. Search for secrets.

kubectl get secret -n argocd

VidyaSV_10-1729154889205.png

  1. A secret is an object that stores sensitive information, such as the credentials that a Pod uses to access a service.

kubectl edit secret argocd-initial-admin-secret -n argocd

  1. Find your password in the argocd-initial-admin-secret file.
  2. Decrypt your password

echo | base64 -d

Base64 is an encoding and decoding technology used to convert binary data to ASCII text format and vice versa.

  1. Use your administrator password to access the Argo CD UI.
  2. Search for service information.

kubectl gets svc -n argocd

VidyaSV_11-1729154889207.png

A service is an abstraction that represents a logical set of pods and policies for accessing them. Each pod has a unique IP address that is not exposed outside the cluster without services.

Edit the Argo CD Server service:

kubectl edit svc argocd-server -n argocd

VidyaSV_12-1729154889210.png

  • Cluster IP: Used for communication between pods within the same Kubernetes cluster.
  • NodePort and LoadBalancer services: Used for communication between applications within the cluster and external clients outside the cluster.
  • Save your changes and run the service command again.
  • kubectl gets svc -n argocd

    VidyaSV_13-1729154889211.png

    NodePort has changed.

    1. Get the NodePort IP address.

    kubectl get node -o wide

    VidyaSV_14-1729154889214.png

    1. NodePort Retrieves external IP address.
    • IP address: 171.177.146.175
    • port number: 31419
    1. If you don’t have access to 171.177.146.175:31419, allow the port in your Azure security group.
    • Go to VMSS → Instance → Networking → Add Inbound Rule → Add Port.

    VidyaSV_15-1729154889221.png

    VidyaSV_16-1729154889225.png

    Please refer to the site https://argo-cd.readthedocs.io/en/stable/getting_started/ For more information





    Source link

    You may also like

    Leave a Comment

    Our Company

    Welcome to OdysseyX, your one-stop destination for the latest news and opportunities across various domains.

    Newsletter

    Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

    Laest News

    @2024 – All Right Reserved. Designed and Developed by OdysseyX