![[OpenShift Container Platform]](ngocp.gif)
Deploying a simple queue manager using the IBM MQ Operator
This example deploys a "quick start" queue manager, which 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.
About this task
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 Operators > Installed Operators.
- 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
QueueManagershould be in aPendingstate.
Step 2 Option 2: Configure in the YAML view.
The YAML view opens an editor containing an example YAML file for aQueueManager. Update the values in the file by following the steps below.- Change
metadata.namespaceto your project (namespace) name. - Change the value of
spec.license.licenseto the license string that matches your requirements. See mq.ibm.com/v1beta1: Current license versions for the license details. - Change
spec.license.accepttotrueif you accept the license agreement. - Click Create. The list of queue managers in the current project
(namespace) is now displayed. The new
QueueManagershould be in aPendingstate.
- 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 Operators > Installed Operators, 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
QueueManagerstatus isRunning.
- Deploy a queue manager.
- Option 2: Deploy a queue manager with the OpenShift CLI.
- Create a
QueueManagerYAML fileFor 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.4.1-r1 license: accept: false license: L-SJZL-NMUUCT use: NonProduction web: enabled: true queueManager: name: "QUICKSTART" storage: queueManager: type: ephemeralImportant: If you accept the license agreement, changeaccept: falsetoaccept: true. See mq.ibm.com/v1beta1: Current license versions for details on the license.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.
To install a basic queue manager independently of IBM Cloud Pak for Integration, create the file "mq-quickstart.yaml" with the following contents:Note: This example uses an IBM MQ Advanced license, though you can also use an IBM MQ license. For more information, see Configuring Queue Managers with IBM MQ license annotations by using the IBM MQ Operator.
Important: If you accept the MQ license agreement, changeapiVersion: mq.ibm.com/v1beta1 kind: QueueManager metadata: name: quickstart spec: version: 9.4.4.1-r1 license: accept: false license: L-NUUP-23NH8Y web: enabled: true queueManager: name: "QUICKSTART" storage: queueManager: type: ephemeralaccept: falsetoaccept: true. See mq.ibm.com/v1beta1: Current license versions for details on the license. -
Create the
QueueManagerobject.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
- Validate the
deployment:
- Create a
- Option 3: Deploy a queue manager with the IBM Cloud Pak for Integration Platform UI.
Follow the instructions in Deploying an instance by using the Platform UI.