Kubernetesで特定のPodのみを表示する方法を紹介します。
以下のようにkubectlの「get」コマンドでポッド名を指定します。
1 |
kubectl get pod ポッド名 |
試してみます。
1 2 3 4 |
root@controlplane:~# kubectl get pod nginx NAME READY STATUS RESTARTS AGE nginx 1/1 Running 0 75s root@controlplane:~# |