使用kubectl查看Kubernetes集群里的node节点信息

使用命令行拿到当前Kubernetes集群的所有节点:

kubectl get nodes

使用kubectl查看Kubernetes集群里的node节点信息_第1张图片

查看某个节点的明细:

kubectl describe node shoot--k8s-train--shacw46-worker-l9qsr-z1-5869bb9948-4cz7w
Name:               shoot--k8s-train--shacw46-worker-l9qsr-z1-5869bb9948-4cz7w
Roles:              node
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=n1-standard-4
                    beta.kubernetes.io/os=linux
                    failure-domain.beta.kubernetes.io/region=europe-west1
                    failure-domain.beta.kubernetes.io/zone=europe-west1-b
                    kubernetes.io/hostname=shoot--k8s-train--shacw46-worker-l9qsr-z1-5869bb9948-4cz7w
                    kubernetes.io/role=node
                    node-role.kubernetes.io/node=
                    worker.garden.sapcloud.io/group=worker-l9qsr
Annotations:        node.alpha.kubernetes.io/ttl: 0
                    projectcalico.org/IPv4Address: 10.250.0.13/32 - 节点IP地址
                    volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp:  Wed, 21 Nov 2018 22:42:01 +0800
Taints:             <none>
Unschedulable:      false
Conditions:
  Type                 Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----                 ------  -----------------                 ------------------                ------                       -------
  NetworkUnavailable   False   Wed, 21 Nov 2018 22:42:14 +0800   Wed, 21 Nov 2018 22:42:14 +0800   RouteCreated                 RouteController created a route
  OutOfDisk            False   Wed, 28 Nov 2018 14:26:17 +0800   Wed, 21 Nov 2018 22:42:01 +0800   KubeletHasSufficientDisk     kubelet has sufficient disk space available
  MemoryPressure       False   Wed, 28 Nov 2018 14:26:17 +0800   Wed, 21 Nov 2018 22:42:01 +0800   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure         False   Wed, 28 Nov 2018 14:26:17 +0800   Wed, 21 Nov 2018 22:42:01 +0800   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure          False   Wed, 28 Nov 2018 14:26:17 +0800   Wed, 21 Nov 2018 22:42:01 +0800   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready                True    Wed, 28 Nov 2018 14:26:17 +0800   Fri, 23 Nov 2018 15:06:47 +0800   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  10.250.0.13
  ExternalIP:  35.205.130.50
  Hostname:    shoot--k8s-train-worker-l9qsr-z1-5869bb9948-4cz7w
Capacity:
 cpu:                4
 ephemeral-storage:  48375392Ki
 hugepages-1Gi:      0
 hugepages-2Mi:      0
 memory:             15396240Ki
 pods:               110
Allocatable:
 cpu:                4
 ephemeral-storage:  47059581301
 hugepages-1Gi:      0
 hugepages-2Mi:      0
 memory:             14245264Ki
 pods:               110
System Info:
 Machine ID:                 929efd015915f7ea9d22f2c017a802b3
 System UUID:                929EFD01-5915-F7EA-9D22-F2C017A802B3
 Boot ID:                    f04f09ea-adf7-4f01-a800-9a044718a074
 Kernel Version:             4.14.67-coreos
 OS Image:                   Container Linux by CoreOS 1855.4.0 (Rhyolite)
 Operating System:           linux
 Architecture:               amd64
 Container Runtime Version:  docker://18.6.1
 Kubelet Version:            v1.11.4
 Kube-Proxy Version:         v1.11.4
PodCIDR:                     100.96.9.0/24
ProviderID:                  gce://diablo-pi-coo-acdc-dev/europe-west1-b/shoot--k8s-train--shacw46-worker-l9qsr-z1-5869bb9948-4cz7w
Pods:                        not authorized
Events:                      <none>

你可能感兴趣的:(开源,Cloud)