'How to use configmap in openshift to read activemq.xml

I am new to openshift/k8s. I have a requirement to enable schedulerSupport in ActiveMQ container.

Current config:

<broker xmlns="http://activemq.apache.org/schema/core" "brokerName="localhost" dataDirectory="${activemq.data}">

I want the new config like this:

<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true">"

I am trying to achieve this using configmap, and I have created the configmap like this but I am facing issue while mapping into my existing deployment config.

oc create configmap amqconfig --from-file=activemq.xml


Solution 1:[1]

You can mount the config map into the file system for the pods, see https://docs.openshift.com/container-platform/4.10/nodes/pods/nodes-pods-configmaps.html#nodes-pods-configmaps-use-case-consuming-in-volumes_configmaps.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Johan Nordlinder