Lab 3.1 Application Configuration

Latest response

Hi,

I have enrolled to the course "Application Deployment with Red Hat OpenShift Container Platform 4". This is to inform you that in the lab assignment section. "Lab 3.1 Application Configuration". There is typo error it seems.

oc set env dc/printenv APP_VAR_1=Value1 APP_VAR_2=Value2

While executing the above commands throws error, deploymentconfig not found. But if we change it to

oc set env bc/printenv APP_VAR_1=Value1 APP_VAR_2=Value2

It works fine.

In addition to this

curl $(oc get route printenv --template='{{ .spec.host }}') | jq . -S | grep APP

will not show recently added env variables. You need to trigger build manually.

oc start-build bc/printenv

Attachments

Responses