ConfigMap Mission - Spring Boot

This mission showcases application configuration, using OpenShift configmaps. It demonstrates application and runtime configuration leveraging external configuration sources. Alongside the basic means to set up a configmap and use with a specific runtime, this booster also demonstrates how changes to the configuration can be applied to services already deployed in OpenShift.

Try the greeting service

Result:

Invoke the service to see the result.

Reconfigure OpenShift ConfigMap

Open ConfigMap editor in your terminal:

oc edit configmap <CONFIGMAP_NAME>

Replace the greeting.message

greeting.message: Bonjour %s from a ConfigMap!

And reload your application

oc rollout latest dc/<DEPLOYMENT_NAME>