ArgoCD

Argo CD Demo Scenarios

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. In this demo, we leverage ArgoCD to deploy application into Kubernetes cluster, the demo includes

  • Basic ArgoCD GitOps pipeline
  • ArgoCD UI

Demo Steps

To use this demo, follow below steps

  1. Open URL http://vote-argo.k8s.devsecops.ink/, show to your customer currently the application is at version 1.

    argocd-1
  2. Open URL https://argocd.k8s.devsecops.ink/, login with Username: admin Password: P@ssw0rd

  3. Click below tile

    argocd-2This is a completed deployment view for existing application in Kubernetes, includes service, deploy, replicaset, pod and ingress, currently it shows application argo-vote is at v1 version.argocd-3
  4. Open URL https://github.com/devopsonazure/vote-argo/blob/master/manifests/deployment.yml, login with your github credentials, then click Edit button

    argocd-4
  5. Change highlighted line from huangyingting/azure-vote-front-argo:v1 to huangyingting/azure-vote-front-argo:v2, then commit change to github repo

containers:
- name: azure-vote-front
image: huangyingting/azure-vote-front-argo:v1
ports:
- containerPort: 80
resources:
requests:
cpu: 250m
limits:
cpu: 500m
  1. Go back to webpage opened at step 3, click Refresh button a few of times, the status will change to OutOfSync, and eventually it will be in Syncing state

    argocd-6
  2. Once syncing is completed, you will see azure-vote-front changed to revision: Rev 2

    argocd-7
  3. If you want to rollback the deployment, you can click "HISTORY AND ROLLBACK" button

    argocd-8
  4. ArgoCD keeps 5 recent deployments, you can rollback to any previous deployment among those 5 deployments, only need to click Rollback button from the popup menu.

    argocd-9