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.
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.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 command. It will then connect to MQ and start sending messages immediately.
Open another terminal window and run the ./getMessage.sh command. You should see all of the messages being sent by the sendMessaging command.
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. |