This example demonstrates how to configure applications using Kubernetes ConfigMaps.
- Log into an OpenShift cluster of your choice:
oc login ...
. - Select a project in which the services will be deployed:
oc project ...
.
Run the following commands to configure and deploy the applications.
oc apply -f ./.openshiftio/resource.configmap.yaml
oc apply -f ./.openshiftio/application.yaml
oc new-app --template=thorntail-configmap
oc create configmap app-config --from-file=app-config.yml
mvn clean oc:deploy -Popenshift
This is completely self-contained and doesn't require the application to be deployed in advance. Note that this may delete anything and everything in the OpenShift project.
mvn clean verify -Popenshift,openshift-it