![[OpenShift Container Platform]](ngocp.gif)
![[Amazon EKS]](ngeks.gif)
Example: Supplying additional files to a queue manager
This example creates a Kubernetes ConfigMap that contains two files. A queue manager is then deployed that mounts these files into the IBM® MQ container in the specified locations.
About this task
Example
The following example creates a Kubernetes ConfigMap that contains two files. A queue manager is then deployed that mounts these files into the IBM MQ container in the specified locations.
- ConfigMap
-
Apply the following YAML in your cluster.
apiVersion: v1 kind: ConfigMap metadata: name: files-example data: file1.txt: | Test File 1 file2.txt: | Test File 2 - QueueManager
-
Note: The following YAML uses an IBM MQ Advanced license, though you can also use an IBM MQ license. For more information, see Configuring Queue Managers with IBM MQ license annotations by using the IBM MQ Operator.
File locations:
- The file file1.txt is mounted into location /etc/mqm/myfiles/file1.txt, which is the defaultMountPath specified for this ConfigMap.
- The file file2.txt is mounted into location /etc/mqm/otherfiles/file2.txt, which is the mountPath override for this specific file.
Additional information:
- When defaultMountPath is unset (for a ConfigMap or Secret) and the mountPath override is unspecified, then files are mounted by default into location /etc/mqm/customfiles
- If you change the contents of any of the files in the ConfigMap or Secret, then you must manually restart the queue managers to pick up those changes. For single instance queue managers, delete the pod to trigger the required restart. For Native HA deployments, restart the stand-by pods first by deleting them. When they are again in a running state, delete the active pod to restart it. This order of restarts ensures minimum downtime for the queue manager.