20.3 Accessing the Pods

Perform the following steps to access the pods in Azure:

  1. Log in to the Azure portal.

  2. Click .

  3. Run the following command to identify the name of the pod:

    kubectl get pods --watch -n <namespace>

    For example,

    kubectl get pods --watch -n idm

  4. Run the following command:

    kubectl exec -it -n idm <pod-name> bash

    For example,

    kubectl exec -it -n idm userapp-d54f98b58-qcpmz bash