ibm-mq-operator
A Helm chart for deploying the IBM MQ Operator
About this chart
Name
IBM® MQ
Introduction
Summary
IBM MQ is messaging middleware that simplifies and accelerates the integration of diverse applications and business data across multiple platforms. It uses message queues to facilitate the exchanges of information and offers a single messaging solution for cloud, mobile, Internet of Things (IoT) and on-premises environments.
The IBM MQ Operator provides an easy way to manage the life cycle of IBM MQ queue managers on Red Hat® OpenShift® Container Platform (OCP) and Amazon Elastic Kubernetes Service (Amazon EKS).
Chart Details
This chart deploys an IBM MQ Operator Deployment. The QueueManager CRD will be deployed from this chart, if and only if, a version of it does not already exist in the cluster. The IBM MQ Operator needs to be installed by a cluster administrator.
Prerequisites
- Helm v3 or v4
- An OCP or Amazon EKS cluster at a supported version
- OCP versions are subject to their own support dates. See Red Hat OpenShift Container Platform Life Cycle Dates for more details.
- Kubernetes versions on Amazon EKS are subject to their own support dates. See Understand the Kubernetes version lifecycle on EKS for more details.
- For more information, see the Containers tab of the relevant IBM MQ system requirements page.
- If persistence is enabled you need to ensure a Storage Class is defined in your cluster
Resources Required
- The IBM MQ Operator deploys by default with 1 CPU core and 1 GB memory. It has not been tested with fewer resources, but may still work.
- Each IBM MQ Queue Manager defaults to 1 CPU core and 1 GB memory, but can be run with fewer resources with lower performance
- The IBM Licensing Operator needs to be installed separately
Installing the Chart
- See Installing and upgrading the IBM MQ Operator on Red Hat OpenShift by using Helm
- See Installing and uninstalling the IBM MQ Operator on Amazon EKS
Chart Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| operator.env | object | {} | Environment variables to pass to the IBM MQ Operator (e.g. {env1: "value1",env2: "value2"}) |
| operator.deployment.replicas | integer | 1 | Number of IBM MQ Operator replicas (Values limited to 1 or 2) |
| operator.deployment.repository | string | "cpopen/ibm-mq-operator" | Remote repository for the IBM MQ Operator image |
| operator.deployment.sha | string | "sha256:b37397b7685df994b638d9326865a54061ebcf0ed7ac91db64b31fe306056dc5" | SHA value of the IBM MQ Operator image |
| operator.deployment.tag | string | nil | Tag value for the IBM MQ Operator image (optional - ignored when a SHA value is provided) |
| operator.deployment.pullPolicy | string | "IfNotPresent" | Image pull policy for the IBM MQ Operator ("IfNotPresent"/ "Always" / "Never")) |
| operator.deployment.resources.requests.cpu | string | "1" | CPU requests setting for the IBM MQ Operator |
| operator.deployment.resources.requests.memory | string | "1Gi" | Memory requests setting for the IBM MQ Operator |
| operator.deployment.resources.limits.cpu | string | "1" | CPU limits setting for the IBM MQ Operator |
| operator.deployment.resources.limits.memory | string | "1Gi" | Memory limits setting for the IBM MQ Operator |
| operator.installMode | string | "OwnNamespace" | Install mode for the IBM MQ Operator to determine at what scope it operates ("OwnNamespace" / "AllNamespaces") |
| operator.imagePullSecrets | list | [] | Image pull secrets for the IBM MQ Operator to allow pulling from authenticated registries (e.g. ["secret1","secret2"]) |
| operand.repositories.integration | string | "cp/ibm-mqadvanced-server-integration" | Remote repository for the IBM MQ integration queue manager image |
| operand.repositories.production | string | "cp/ibm-mqadvanced-server" | Remote repository for the IBM MQ production queue manager image |
| operand.repositories.developer | string | "ibm-messaging/mq" | Remote repository for the IBM MQ developer queue manager image |
| privateRegistry | string | "" | Private registry allowing pulling of IBM MQ Operator and Queue Manager images from an alternative private registry |
Deploying an IBM MQ Queue Manager
Prerequisites
The IBM MQ Operator deploys queue manager images that are pulled from a container registry that performs a license entitlement check. Follow these instructions to get an entitlement key and create a pull secret.
Note: The entitlement key is not required if only IBM MQ Advanced for Developers (Non-Warranted) queue managers are going to be deployed.
Creating an IBM MQ Queue Manager
To deploy a queue manager, see Deploying and configuring queue managers using the IBM MQ Operator. Queue managers can be installed by a namespace administrator.
Important: The following configuration applies only when deploying on Amazon Elastic Kubernetes Service (Amazon EKS), not to deployments on Red Hat® OpenShift® Container Platform (OCP).
When deploying an IBM MQ queue manager on Amazon EKS, all Red Hat OpenShift Container Platform features MUST be explicitly disabled as follows:
# QueueManager YAML snippet
...
spec:
queueManager:
...
route:
enabled: false
metrics:
serviceMonitor:
enabled: false
web:
...
route:
enabled: false
Upgrading an IBM MQ Queue Manager
To upgrade an installed and running queue manager, update the following field of the Queue Manager YAML:
spec.version
For some upgrades, you may also need to update the license:
spec.license.license
See Current license versions for more details.
To upgrade, update the field(s) in the Queue Manager yaml by, for example, running on OCP:
oc edit queuemanager <Queue Manager's metadata.name> -n <namespace>
or, on Amazon EKS:
kubectl edit queuemanager <Queue Manager's metadata.name> -n <namespace>
Storage
MQ is configured to use dynamic provisioning of ReadWriteOnce (RWO) Persistent Volumes (typically block storage) when using MQ Native HA or single instances.
MQ can optionally be configured to use dynamic provisioning of ReadWriteMany (RWX) Persistent Volumes, which use a shared filesystem, when using multi-instance queue managers. In this case, MQ is affected by other limits applied to the file system (such as limiting the number of file locks in AWS EFS). See testing statement.
Limitations
- Works only on the
amd64,s390x&ppc64leCPU architectures. All Nodes in the cluster must use the same CPU architecture. - Do not edit the availability type of a QueueManager after initial creation
- Do not edit the storage settings of a QueueManager after initial creation
- The following alpha and beta APIs and features are used by the MQ operator:
operator.ibm.com/v1alpha1for installation of additional IBM common operators
Documentation
Deploy ibm-mq-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-mq-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartibm-mq-operator is pinned at v4.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply