ibm-mq-operator

by joaquinito2051

Helm chartv4.1.1App 4.1.1Apache-2.0

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

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

Chart Configuration

KeyTypeDefaultDescription
operator.envobject{}Environment variables to pass to the IBM MQ Operator (e.g. {env1: "value1",env2: "value2"})
operator.deployment.replicasinteger1Number of IBM MQ Operator replicas (Values limited to 1 or 2)
operator.deployment.repositorystring"cpopen/ibm-mq-operator"Remote repository for the IBM MQ Operator image
operator.deployment.shastring"sha256:b37397b7685df994b638d9326865a54061ebcf0ed7ac91db64b31fe306056dc5"SHA value of the IBM MQ Operator image
operator.deployment.tagstringnilTag value for the IBM MQ Operator image (optional - ignored when a SHA value is provided)
operator.deployment.pullPolicystring"IfNotPresent"Image pull policy for the IBM MQ Operator ("IfNotPresent"/ "Always" / "Never"))
operator.deployment.resources.requests.cpustring"1"CPU requests setting for the IBM MQ Operator
operator.deployment.resources.requests.memorystring"1Gi"Memory requests setting for the IBM MQ Operator
operator.deployment.resources.limits.cpustring"1"CPU limits setting for the IBM MQ Operator
operator.deployment.resources.limits.memorystring"1Gi"Memory limits setting for the IBM MQ Operator
operator.installModestring"OwnNamespace"Install mode for the IBM MQ Operator to determine at what scope it operates ("OwnNamespace" / "AllNamespaces")
operator.imagePullSecretslist[]Image pull secrets for the IBM MQ Operator to allow pulling from authenticated registries (e.g. ["secret1","secret2"])
operand.repositories.integrationstring"cp/ibm-mqadvanced-server-integration"Remote repository for the IBM MQ integration queue manager image
operand.repositories.productionstring"cp/ibm-mqadvanced-server"Remote repository for the IBM MQ production queue manager image
operand.repositories.developerstring"ibm-messaging/mq"Remote repository for the IBM MQ developer queue manager image
privateRegistrystring""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 & ppc64le CPU 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/v1alpha1 for 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-mq-operator is pinned at v4.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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