Skip to content

lozanotux/rollouts-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArgoCD rollouts-demo (Blue-Green)

This repository has an example App packaged with kustomize to test ArgoCD Rollouts with Blue-Green strategy.

concept

Prerequisites

  1. Install Red Hat OpenShift GitOps (a.k.a. ArgoCD) through OperatorHub
  2. Install ArgoCD Rollout, to do this follow the next steps from a terminal window:
$ oc create namespace argo-rollouts
$ oc apply -n argo-rollouts -f https://github.com/argoproj/argo-rollouts/releases/latest/download/install.yaml

Note: is very imporant keep the exactly name of the namespace, otherwise ArgoCD Rollout did not work.

How to use this repository

  1. Create an Application inside ArgoCD (+ New App button), and complete the form with this values:
  1. Click on the Sync button to force a synchronization.
  2. Test you Rollout App oppening the URL and seeing blue squares.
  3. Change the rollout.yaml with another version of the image (yellow, purpple, green, orange, red). And commit your changes.
  4. Your rollout after your changes are commited, is in pause state (RolloutPaused). To promote your Rollout to next version, you need a kubectl plugin to operate it. Para mas información de como instalarlo vea #kubectl-plugin-installation.

Once your plugin has installed you need to run the next command:

$ kubectl argo rollouts promote rollouts-demo -n ${YOUR_TARGET_NAMESPACE}

Note: With that command, the active-service switch the version to the new one. And the preview-service is become available again to receive a future new version.

how it works

About

Example Rollout App Manifests Repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published