The strategic deployment mechanism for IBM MQ on RedHat OpenShift is the IBM MQ Operator, the helm chart is only provided for customers who are unable to utilize the operator.
Although this sample uses the IBM MQ Advanced container image from the IBM entitled registry this is considered a custom built image from an IBM support statement. The IBM MQ Advanced container image is only supported by IBM support when deployed with the MQ operator. The MQ product code contained within the image continues to be supported as normal. If you have any questions please reach out to askmessaging@uk.ibm.com. The reason for demonstrating this option is to remove the need to re-build the container image locally.
Prior to using the Helm chart you will need to install three dependencies:
oc
command line. If you are unsure how to do this please consult here.oc project <namespace>
oc create secret docker-registry ibm-entitlement-key --docker-server=cp.icr.io --docker-username=cp --docker-password=<YOUR ENTITLEMENT_KEY> --docker-email=<email address> -n <namespace>
cd deploy
./install.sh <namespace>
genericresources/createcerts
directory. Assuring the communication in MQ is secure.oc get pods | grep secureapp
. Wait until one of the three Pods is showing 1/1
under the read status (only one will ever show this, the remainding two will be 0/1
showing they are replicas).Navigate to ../test directory. No modifications should be required, as the endpoint configuration for your environment will be discovered automatically.
To initiate the testing, run the **./sendMessage.sh
Open another terminal window and run the **./getMessage.sh
To see how the pods work together in action, run the **oc get pod | grep secureapp** command on another terminal windows to view the current pods, and then delete the running pod (the one with the ready state of 1/1 ) by running the command: oc delete pod secureapphelm-ibm-mq-0 (where the pod name is customized based on which one is active). Once the active pod is deleted, the application connections will then reconnect to the other pod. |