This is a simple three tier application that can be deployed on OpenShift via OpenShift GitOps.
To use this application in your own demos, simply fork this repo and then create an app in OpenShift GitOps to point to this application.
Note the Path is set to just a dot, i.e. .
, ignore the cursor there it is not a pipe.
Once the application is deployed, you can demo some basic GitOps principles:
-
Self-Healing. Try to increase the replica count of the client or the server in the OpenShift Console, note that because self-heal is enabled it is automatically reset back to 1 which is what is set in the repo.
-
Self-Healing. Delete the client application in the OpenShift Console, note that Argo immediately recreates it
-
In kustomization.yaml increase the replica count for either the client or server application in kustomization.yaml, push to git and refresh the app in Argo CD (or wait for 3 minute polling to kick-in). Show how the replica count has increased in the application
-
In kustomization.yaml show how to increase resources by removing the comments around the patch and pushing it to git. Again refresh the app in Argo CD and in the OpenShift Console note how the pod was recreated with the new higher limit