3.8 Deploying ActiveMQ Container

  1. Log in to the Kubernetes master node.

  2. Run the following command to deploy the container:

    kubectl create -f <location of the YAML file>

    For example:

    kubectl create -f /data/ActiveMQ.yaml

  3. (Conditional) Run the following command to verify the status of the deployed pod:

    kubectl get pods -o=wide

  4. To check the details of the deployed pod, run the following command:

    kubectl describe pod <pod name>

    For example,

    kubectl describe pod activemq

  5. To log in to the pod, run the following command:

    kubectl exec -it <pod name> -- /bin/bash

    For example,

    kubectl exec -it activemq -- /bin/bash