30.3 ポッドへのアクセス

次の手順を実行して、Azureのポッドにアクセスします。

  1. Azure portalにログインします。

  2. をクリックします。

  3. 次のコマンドを実行して、ポッドの名前を特定します。

    kubectl get pods --watch -n <namespace>

    次に例を示します。

    kubectl get pods --watch -n idm

  4. 次のコマンドを実行します。

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

    次に例を示します。

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