kubectl get nodes
watch kubectl get nodes
kubectl describe node master
kubectl cluster-info
kubectl cluster-info dump
vagrant@contrib-jessie:~$ nmap localhost
Starting Nmap 6.47 ( http://nmap.org ) at 2017-05-24 15:44 GMT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00018s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 996 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
8080/tcp open http-proxy
Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
vagrant@contrib-jessie:~$ kubectl get node
NAME STATUS AGE
10.10.0.2 Ready 135d
vagrant@contrib-jessie:~$ kubectl cluster-info
Kubernetes master is running at http://localhost:8080
dashboard is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/dashboard
KubeDNS is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
vagrant@contrib-jessie:~$ kubectl describe node
Name: 10.10.0.2
Role:
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/os=linux
kubernetes.io/hostname=10.10.0.2
Taints: <none>
CreationTimestamp: Mon, 09 Jan 2017 12:32:22 +0000
Phase:
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
OutOfDisk False Wed, 24 May 2017 15:38:12 +0000 Wed, 24 May 2017 15:15:20 +0000 KubeletHasSufficientDisk kubelet has sufficient disk space available
MemoryPressure False Wed, 24 May 2017 15:38:12 +0000 Mon, 09 Jan 2017 12:32:22 +0000 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure False Wed, 24 May 2017 15:38:12 +0000 Mon, 09 Jan 2017 12:32:22 +0000 KubeletHasNoDiskPressure kubelet has no disk pressure
Ready True Wed, 24 May 2017 15:38:12 +0000 Mon, 09 Jan 2017 12:32:22 +0000 KubeletReady kubelet is posting ready status
Addresses: 10.10.0.2,10.10.0.2,10.10.0.2
Capacity:
alpha.kubernetes.io/nvidia-gpu: 0
cpu: 1
memory: 1020136Ki
pods: 110
Allocatable:
alpha.kubernetes.io/nvidia-gpu: 0
cpu: 1
memory: 1020136Ki
pods: 110
System Info:
Machine ID: 870abe4fca6248e58608db37a01c4bd7
System UUID: 798AFC1F-7C88-413D-BFD7-623F81F1827C
Boot ID: f90c67a4-2b44-482e-8b32-2956a09e84a8
Kernel Version: 4.8.0-0.bpo.2-amd64
OS Image: Debian GNU/Linux 8 (jessie)
Operating System: linux
Architecture: amd64
Container Runtime Version: docker://1.12.5
Kubelet Version: v1.5.1
Kube-Proxy Version: v1.5.1
ExternalID: 10.10.0.2
Non-terminated Pods: (2 in total)
Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits
--------- ---- ------------ ---------- --------------- -------------
kube-system kube-dns-v19-1wqk9 110m (11%) 0 (0%) 120Mi (12%) 220Mi (22%)
kube-system kubernetes-dashboard-760708830-j31g6 0 (0%) 0 (0%) 0 (0%) 0 (0%)
Allocated resources:
(Total limits may be over 100 percent, i.e., overcommitted.
CPU Requests CPU Limits Memory Requests Memory Limits
------------ ---------- --------------- -------------
110m (11%) 0 (0%) 120Mi (12%) 220Mi (22%)
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
135d 135d 1 {kubelet 10.10.0.2} Warning ImageGCFailed unable to find data for container /
135d 135d 2 {kubelet 10.10.0.2} Normal NodeHasSufficientDisk Node 10.10.0.2 status is now: NodeHasSufficientDisk
135d 135d 2 {kubelet 10.10.0.2} Normal NodeHasSufficientMemory Node 10.10.0.2 status is now: NodeHasSufficientMemory
135d 135d 2 {kubelet 10.10.0.2} Normal NodeHasNoDiskPressure Node 10.10.0.2 status is now: NodeHasNoDiskPressure
135d 135d 1 {kubelet 10.10.0.2} Normal Starting Starting kubelet.
135d 135d 1 {kubelet 10.10.0.2} Warning ImageGCFailed unable to find data for container /
135d 135d 1 {kubelet 10.10.0.2} Normal Starting Starting kubelet.
135d 135d 1 {kubelet 10.10.0.2} Warning Rebooted Node 10.10.0.2 has been rebooted, boot id: afb435ac-7766-4134-8078-565b2b80d632
135d 135d 8 {kubelet 10.10.0.2} Normal NodeHasSufficientDisk Node 10.10.0.2 status is now: NodeHasSufficientDisk
135d 135d 8 {kubelet 10.10.0.2} Normal NodeHasSufficientMemory Node 10.10.0.2 status is now: NodeHasSufficientMemory
135d 135d 8 {kubelet 10.10.0.2} Normal NodeHasNoDiskPressure Node 10.10.0.2 status is now: NodeHasNoDiskPressure
135d 135d 1 {kubelet 10.10.0.2} Normal NodeOutOfDisk Node 10.10.0.2 status is now: NodeOutOfDisk
23m 23m 1 {kubelet 10.10.0.2} Normal Starting Starting kubelet.
23m 23m 1 {kubelet 10.10.0.2} Warning ImageGCFailed unable to find data for container /
23m 22m 9 {kubelet 10.10.0.2} Normal NodeHasSufficientDisk Node 10.10.0.2 status is now: NodeHasSufficientDisk
23m 22m 8 {kubelet 10.10.0.2} Normal NodeHasSufficientMemory Node 10.10.0.2 status is now: NodeHasSufficientMemory
23m 22m 8 {kubelet 10.10.0.2} Normal NodeHasNoDiskPressure Node 10.10.0.2 status is now: NodeHasNoDiskPressure
22m 22m 1 {kubelet 10.10.0.2} Warning Rebooted Node 10.10.0.2 has been rebooted, boot id: f90c67a4-2b44-482e-8b32-2956a09e84a8