Kubectl describe 参数解释

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name:         nginx	# Pod的名称
Namespace: default # 默认的命令空间
Priority: 0 # 没有优先事项
Node: node1/172.16.32.145 # node节点
Start Time: Sat, 01 Oct 2021 19:32:40 +0800 # Pod的创建时间
Labels: <none> # 没有标签
Annotations: <none> # 没有注释
Status: Running # Pod状态
IP: 10.2.1.6 # ClusterIP
IPs:
IP: 10.2.1.6
Containers: # 容器
nginx: # nginx容器信息
# 容器ID
Container ID: docker://00d72ec98a23db9a6f927bd54ef01c39e22e6a7b4950575f3b6c460fde971aae
Image: nginx:1.14.2 # 镜像名称:镜像版本
# 镜像ID
Image ID: docker-pullable://nginx@sha256:f7988fb6c02e0ce69257d9bd9cf37ae20a60f1df7563c3a2a6abe24160306b8d
Port: 80/TCP # 声明的端口
Host Port: 0/TCP # 没有映射端口
State: Running # 容器状态
Started: Sat, 01 Oct 2021 19:33:10 +0800 # 容器的创建时间
Ready: True #
Restart Count: 0 # 容器重启的次数
Environment: <none> # 没有传递环境变量
Mounts: # 挂载
/var/run/secrets/kubernetes.io/serviceaccount from default-token-lc5m9 (ro)
Conditions: # Pod状况
Type # 类型 Status # 状态
Initialized True # 安装正常
Ready True # 准备OK
ContainersReady True # 容器OK
PodScheduled True # 正常调度
Volumes: # 卷
default-token-lc5m9:
Type: Secret (a volume populated by a Secret) # 加密类型
SecretName: default-token-lc5m9 # 加密名称
Optional: false # 可选项
QoS Class: BestEffort # 服务质量类型
Node-Selectors: <none> # 没有指定node节点
# 容忍
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events: # 事件
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 44m default-scheduler Successfully assigned default/nginx to node1
Normal Pulling 44m kubelet Pulling image "nginx:1.14.2"
Normal Pulled 43m kubelet Successfully pulled image "nginx:1.14.2" in 29.118746698s
Normal Created 43m kubelet Created container nginx
Normal Started 43m kubelet Started container nginx