0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Kubernetes:namespacesのpod一覧を確認

0
Last updated at Posted at 2026-06-23

下記構成でKubernetesを動かした時のpod一覧を表示した。

構成
nginxを1つ作成
service作成

podとは
Dockerでは、コンテナ。
Kubernetesでは、Podを管理するという考え方になる。

kubectl get pods -A

※ -A は --all-namespaces の省略形。

default nginx-66686b6766-c24mj 1/1 Running

自分で作ったnginx
1/1 は「必要なコンテナ1個中、1個が起動中」。
Running なので正常稼働。

coredns                 クラスター内DNS
etcd                    クラスター情報の保存場所
kube-apiserver          Kubernetes操作の入口
kube-controller-manager 状態を監視して調整する係
kube-scheduler          Podをどこで動かすか決める係
kube-proxy              Serviceの通信を処理する係
kindnet                 Pod同士のネットワーク

Kubernetes本体を動かすための部品群

kube-apiserver
kubectl が話しかけてる相手。

kube-controller-manager
Podを1個にしてと言われたらずっと見張る。

kube-scheduler
どのノードに配置するか決める。

kube-proxy
Service の通信を中継。

local-path-provisioner
ストレージ担当

local-path-provisioner

local-path-storage
ローカル環境でストレージを使うためのPod。
開発用Kubernetesでよく使う。

kubectl get pods -A を実行すると、自分で作成したPodだけでなく、Kubernetesクラスターを支えるシステム用Podも確認できる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?