This example shows how to bootstrap kubernetes ConfigMap to the Spring Boot properties
./mvn clean fabric8:deploy oc get pods -w (1)
-
Ensure the application is deployed and available to run
Find the route of the applicaiton using the command oc get route spring-boot-greeter
, and try the following
curl $(oc get route spring-boot-greeter | awk 'END{print $2}')/greet/<name>
This should display the greeting with prefix configured for property greeter.prefix
cm.yaml