说明 非原创 好像是华为培训课件里面的,原文找不到了 就不附链接了
给个官方文档地址吧:https://kubernetes.io/docs/home/
node定义
kubectl get node -o yaml
apiVersion: v1
kind: Node
metadata:
labels:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
kubernetes.io/hostname: node-n1
name: node-n1
spec:
externalID: node-n1
status:
addresses:
- address: 10.162.197.135
type: InternalIP
allocatable: # 可分配资源
cpu: "8"
memory: 16309412Ki
pods: "110"
capacity: # 总资源
cpu: "8"
memory: 16411812Ki
pods: "110"
conditions: {...}
daemonEndpoints:
kubeletEndpoint:
Port: 10250
images: {...}
nodeInfo: {...}