This document describes how to prepare & execute the gitops config management demo
The demo environment(s) have been bootstrapped.
This demo module is a continuation of the basic gitops application deployment module. It can be prepared independently, but needs to be executed after it.
cd ~/manuela-gitops/config/instances/manuela-<yourenv>/machine-sensor
OSX
sed -i ''c '/SENSOR_TEMPERATURE_ENABLED/d' machine-sensor-2-configmap.properties
Linux
sed -i '/SENSOR_TEMPERATURE_ENABLED/d' machine-sensor-2-configmap.properties
cd ~/manuela-gitops
git add .
git commit -m "reset sensor 2 temperature probe"
git push
This should happen automatically, but can be triggered through the ArgoCD UI and/or CLI
Adapt Application Instance configuration
cd ~/manuela-gitops/config/instances/manuela-<yourexecenv>/machine-sensor
echo "SENSOR_TEMPERATURE_ENABLED=true" >>machine-sensor-2-configmap.properties
cat machine-sensor-2-configmap.properties
MQTT_HOSTNAME=broker-amq-mqtt-all-0-svc-rte-manuela-stormshift-messaging.apps.ocp3.stormshift.coe.muc.redhat.com
MQTT_PORT=80
SENSOR_TEMPERATURE_ENABLED=true
Commit changes to Git
Similar to Sprint 1
Similar to Sprint 1
TODO - how can this be triggered automatically?
(Watch out: on CRC, sometimes this deployment is OOM killed and no change takes place).
In the ArgoCD UI, navigate to the machine-sensor application.
Click on the git commit hashcode to open the commit in GitHub.