Background colour that is visible
Boot time
Uptime in pretty format
gomplate
gomplate -d up=https://fqdn/uptime -d background=https://fqdn/background -d boot=https://fqdn/boot -i 'Running for {{ (ds "up").up }} on colour {{ (ds "background").background }} since {{ (ds "boot").boot }}'
curl
curl -X POST -H "Content-Type: application/json" -d '{"background":"blue"}' https://fqdn/background
New Project
oc new-project set-colour
New BuildConfig
oc new-app https://github.com/chornberger-c2c/set-colour.git
Create Route
oc expose svc/set-colour
Verify
URL=$(oc get route set-colour -o jsonpath='{.spec.host}''{"\n"}')
curl ${URL}