Adding custom annotations and labels to queue manager resources

You add custom annotations and labels to the QueueManager metadata.


About this task

Custom annotations and labels are added to all resources except PVCs. If a custom annotation or label matches an existing key, the value set by the MQ Operator is used.


Procedure

  • Add custom annotations.

    To add custom annotations to queue manager resources, including the pod, add the annotations under metadata. For example:

    apiVersion: mq.ibm.com/v1beta1
    kind: QueueManager
    metadata:
      name: quickstart-cp4i
      annotations:
        annotationKey: "value"
    
  • Add custom labels.

    To add custom labels to queue manager resources, including the pod, add the labels under metadata. For example:

    apiVersion: mq.ibm.com/v1beta1
    kind: QueueManager
    metadata:
      name: quickstart-cp4i
      labels:
        labelKey: "value"
    

Parent topic: Deploying IBM MQ certified containers using the IBM MQ Operator