This example deploys a "quick start" queue manager using the
IBM® MQ Operator on Red Hat® OpenShift®. The queue manager uses ephemeral (non-persistent)
storage, and turns off IBM MQ security. Messages are not
persisted across restarts of the queue manager. You can adjust the configuration to change many
queue manager settings.
Procedure
- Option 1: Deploy a queue manager with the OpenShift console.
- Deploy a queue manager.
- Log in to the OpenShift console with your
Red Hat OpenShift Container Platform cluster administrator credentials.
- Change 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 on the Queue Manager tab.
- Click on the Create QueueManager button. The instance creation panel is
displayed, and offers two methods for configuring the resource; the Form view
and the YAML view. The Form view is selected by
default.
- Configure the queue manager.
Step 2 Option 1: Configure in the
Form view.
The
Form view opens a form that you can
use to view or modify the resource configuration.
- Next to License, click the arrow to expand the license acceptance
section.
- Set License accept to true if you accept the
license agreement.
- Click the arrow to open the drop-down list, and select a license. IBM MQ is available under several different licenses. For more
information on the valid licenses, see mq.ibm.com/v1beta1: Current license versions. You must accept
the license to deploy a queue manager.
- Click Create. The list of queue managers in the current project
(namespace) is now displayed. The new
QueueManager should be in a
Pending state.
Step 2 Option 2: Configure in the YAML view.
The
YAML view opens an editor containing an example YAML file for a
QueueManager. Update the values in the file by following the steps below.
- Change
metadata.namespace to your project (namespace) name.
- Change the value of
spec.license.license to the license string that matches
your requirements. See mq.ibm.com/v1beta1: Current license versions for the license details.
- Change
spec.license.accept to true if you accept the license
agreement.
- Click Create. The list of queue managers in the current project
(namespace) is now displayed. The new
QueueManager should be in a
Pending state.
- Verify queue manager creation.
You can verify that you've created a Queue
Manager by completing the following steps:
- Ensure that you're in the namespace that you created your IBM MQ Operator in.
- From the Home screen, click
, then select the installed IBM MQ Operator that you created the queue manager for.
- Click on the Queue Manager tab. The creation is complete when the
QueueManager status is Running.
- Option 2: Deploy a queue manager with the OpenShift CLI.
- Create a
QueueManager YAML file
For example, to install a basic queue manager in
IBM Cloud Pak for Integration, create the file "mq-quickstart.yaml" with the following
contents:
apiVersion: mq.ibm.com/v1beta1
kind: QueueManager
metadata:
name: quickstart-cp4i
spec:
version: 9.4.5.0-r2
license:
accept: false
license: L-SJZL-NMUUCT
use: NonProduction
web:
enabled: true
queueManager:
name: "QUICKSTART"
storage:
queueManager:
type: ephemeral
This example also includes a web server deployed with the queue manager, with the web console
enabled with Single Sign-On within IBM Cloud Pak for Integration.
For Single Sign-On to work, you first need to install other
IBM Cloud Pak for Integration components. See Installing the IBM MQ Operator for use with IBM Cloud Pak for Integration on Red Hat OpenShift.
To install a basic queue manager independently of
IBM Cloud Pak for Integration, create the file "mq-quickstart.yaml" with the following
contents:
apiVersion: mq.ibm.com/v1beta1
kind: QueueManager
metadata:
name: quickstart
spec:
version: 9.4.5.0-r2
license:
accept: false
license: L-NUUP-23NH8Y
web:
enabled: true
queueManager:
name: "QUICKSTART"
storage:
queueManager:
type: ephemeral
Important: If you accept the MQ license agreement, change
accept: false to
accept: true. See
mq.ibm.com/v1beta1: Current license versions for details on the license.
-
Create the
QueueManager object.
oc apply -f mq-quickstart.yaml
- Verify queue manager creation.
Verify that you've created a queue manager
by completing the following steps:
- Validate the
deployment:
oc describe queuemanager Queue_Manager_Resource_Name
- Check the status:
oc describe queuemanager quickstart
- Option 3: Deploy a queue manager with the IBM Cloud Pak for Integration Platform UI.