Deploy Argocd in Kubernetes

Deploy Argocd in Kubernetes

Argo CD is a declarative continuous delivery tool for Kubernetes applications. It uses the GitOps style to create and manage Kubernetes clusters. When any changes are made to the application configuration in Git, Argo CD will compare it with the configurations of the running application and notify users to bring the desired and live state into sync.

  • Argo CD follows the GitOps pattern, using Git repositories as the source of truth for defining the desired application state.

  • Kubernetes manifests (such as YAML files) can be specified in several ways: kustomize applications, Helm charts, JSONnet files, or plain directories of YAML/JSON manifests.

  • Any modifications made to the desired target state in the Git repo can be automatically applied and reflected in the specified target environments.

Accessing the Kubernetes Master Node

To access the master node in a Kubernetes cluster, follow these LINK:

Open a terminal session.

Use the SSH protocol to connect:

ssh -i access_keuser@master-node-address

Replace user with your username and master-node-address with the IP address or hostname of the master node.

Enter your password or authenticate with your SSH key when prompted.

Once connected, you can perform administrative tasks on the Kubernetes master node.

Upgrade Packages & Install Prerequisites

Install ArgoCD

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

To access a service in your web browser using a LoadBalancer, follow these steps:

  1. Deploy Your Service: Ensure your service is deployed in your Kubernetes cluster and is set to type LoadBalancer. This configuration exposes your service externally.

  2. Retrieve the IP Address: Use the command kubectl get services to find the external IP address of the LoadBalancer associated with your service.

  3. Access in Browser: Copy the external IP address of your LoadBalancer and paste it into your web browser's address bar. If your service is running on a specific port, append<port_number> to the IP address in the browser.

By following these steps, you should be able to access your service through a web browser using the LoadBalancer's external IP address.

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' 
kubectl get svc -n argocd 

Access Argocd via browser

Launch your web browser and input the Public IP address in the address bar.

For Username and password

To generate the token, please use the provided password.

To configure the password, execute the following commands:

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

Copy the token and enter it as your password.

Last updated