You can add annotations to queue managers either on creation, or by updating existing
queue managers by using the spec.annotations.
About this task
These instructions apply only if both the following statements are true:
- You are using the IBM® MQ Operator. If you are self-deploying
queue managers on Kubernetes, see IBM MQ container license annotations instead.
- You are editing an existing queue manager. For new queue managers, add the annotations on
creation instead.
Important: Updating the queue manager YAML triggers a pod restart.
Procedure
- Option 1: Add annotations by using the command line interface (CLI).
- Log into your cluster from the command line.
- Set your
project (namespace) to the one in which your queue manager
is deployed:
- Identify the name of the queue manager that you want to update:
- For deployments on the Red Hat OpenShift Container Platform:
oc get queuemanager
- For deployments on Amazon EKS:
kubectl get queuemanager
- Add the required annotations to your queue manager by editing the queue manager:
- Repeat these steps for other queue managers as required.
- Option 2: Add annotations by using the Red Hat OpenShift console, for deployments on Red Hat OpenShift.
- Navigate to your queue manager
- Log in to the Red Hat OpenShift console with your Red Hat OpenShift Container Platform cluster administrator credentials.
- Change the Project to the namespace where you installed the IBM MQ Operator. Select the namespace from the Project drop-down
list.
- In the navigation pane, click .
- In the list on the Installed Operators panel, find and click IBM MQ.
- Click the Queue Manager tab.
- Click the required Queue Manager name.
- Add the required annotations to your queue manager.
- Click the YAML tab.
- Locate the
spec field.
- Add the required annotations to the queue manager. Create the
annotations field
if it is not already present.
-
Click Save.
The queue manager pod restarts and the annotations are applied.
- Repeat these steps for other queue managers as required.