Skip to content

Instantly share code, notes, and snippets.

@dmancloud
Last active April 17, 2024 04:29
Show Gist options
  • Save dmancloud/7a024aa0e47fd39bd0db6e80a4aae842 to your computer and use it in GitHub Desktop.
Save dmancloud/7a024aa0e47fd39bd0db6e80a4aae842 to your computer and use it in GitHub Desktop.
ArgoCD Installation Part 2

ArgoCD Installation Part 2 - Quick Start

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 has been developed under the Cloud Native Computing Foundation’s (CNCF) Argo Project- a project, especially for Kubernetes application lifecycle management. The project also includes Argo Workflow, Argo Rollouts, and Argo Events.. Each solves a particular set of problems in the agile development process and make the Kubernetes application delivery scalable and secure.

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

Change Service to NodePort

Edit the service can change the service type from ClusterIP to NodePort

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

Fetch Password

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

Deploy Demo Application

You can use the below repository to deploy a demo nginx application

https://github.com/dmancloud/argocd-tutorial

Scale Replicaset

kubectl scale --replicas=3 deployment nginx -n default

Clean Up

kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl delete namespace argocd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment