Skip to content

About

Orchestration with gitops using argocd. It is a gitops continous delivery tool. It automatically triggers when the CI pipeline is altered or there are changes in the k8s manifest files and It is deployed into k8s w/ the k8s YAML file

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

gitops-argocd

This guide provides a step-by-step tutorial on setting up Argo CD for GitOps on Kubernetes.


Official Guide


Installation of Argo CD

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

Monitoring Pod Creation

kubectl get pods -n argocd -w
image

Getting Created Services

kubectl get svc -n argocd
image

Expose Argo CD API Server

Change the ClusterIP of the argocd-server service to NodePort to access Argo CD from your browser.

kubectl edit svc argocd-server -n argocd
image _Change `ClusterIP` to `NodePort`_ image

Verify and Access the UI

kubectl get svc -n argocd -o wide
image

Open the UI in your browser at the Node IP and port: image


Getting the Login Details

List secrets to find the admin password:

kubectl get secret -n argocd
image

Extract the password:

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

Copy the password in base64 and decode it:

echo <password==> | base64 --decode
# Example:
echo OGFWSURuSWNvcTJzMW40Mw== | base64 --decode
  • Username: admin
  • Password: (your decoded password)
image image

Setting Up a CD Process

Example repo: argoproj/argocd-example-apps/guestbook

  • Tip: HEAD is set so that it automatically triggers on the latest commit.
image image image image

Result: Deployment View

This is how it looks after setup:

image

Expanded view:
See the full project status, from service files to pod deployment.

image

Confirm from CLI

kubectl get pods -n argocd
image

Access the Guestbook App via CLI

kubectl get svc
kubectl port-forward svc/guestbook-ui 8080:80
image image

About

Orchestration with gitops using argocd. It is a gitops continous delivery tool. It automatically triggers when the CI pipeline is altered or there are changes in the k8s manifest files and It is deployed into k8s w/ the k8s YAML file

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors