This project was generated with ngX-Rocket version 7.1.0
- Go to project folder and install dependencies:
npm install- Launch development server, and open
localhost:4200in your browser:
npm starthelm template -f helm/values.yaml helm | oc apply -n my-namespace -f-
To deploy a specific tagged version set the app_tag variable
helm template -f helm/values.yaml helm --set app_tag=purple | oc apply -n my-namespace -f-
helm template -f helm/values.yaml helm | oc apply -f-
oc scale dc/pet-battle --replicas=0
oc scale dc/pet-battle --replicas=10
-
Log in to the hub cluster in which RHACM is installed
-
Apply the cluster config using the following command. This sets up two channels, one for the helm-charts and one for the git repo to allow us use helm lifecycle for managing the apps deployment and also harness gitops for audit and traceability.
cat rhacm/rhacm-* | oc apply -f-- On the acm console you should now have a subscription tracking the helm repo and one tracking git. There is a subscription for
rhacm/stagingrhacm/production. Any changes to the yaml files in here will be reflected in the deployment on RHACM. For example, in therhacm/production/rhacm-subscription.yamlyou could update the helm chart version as part of a cd/cd workflow eg from1.0.1to1.0.2
spec:
channel: pet-battle-ch/cat-app
name: pet-battle
packageFilter:
version: 1.0.2