1 개요[ | ]
- kubectl get --raw "/api/v1/nodes/node01"
Console
Copy
$ kubectl get no
NAME STATUS ROLES AGE VERSION
controlplane Ready control-plane 13h v1.29.0
node01 Ready <none> 13h v1.29.0
Console
Copy
$ kubectl get --raw "/api/v1/nodes/node01" | jq
{
"kind": "Node",
"apiVersion": "v1",
"metadata": {
"name": "node01",
"uid": "9f7a2313-6d6e-44e3-8092-bd6709925e26",
"resourceVersion": "5502",
"creationTimestamp": "2024-03-03T15:32:07Z",
"labels": {
"beta.kubernetes.io/arch": "amd64",
"beta.kubernetes.io/os": "linux",
"kubernetes.io/arch": "amd64",
"kubernetes.io/hostname": "node01",
"kubernetes.io/os": "linux"
},
"annotations": {
"flannel.alpha.coreos.com/backend-data": "{\"VNI\":1,\"VtepMAC\":\"72:1d:23:cb:bd:e6\"}",
"flannel.alpha.coreos.com/backend-type": "vxlan",
"flannel.alpha.coreos.com/kube-subnet-manager": "true",
"flannel.alpha.coreos.com/public-ip": "172.30.2.2",
"kubeadm.alpha.kubernetes.io/cri-socket": "unix:///var/run/containerd/containerd.sock",
"node.alpha.kubernetes.io/ttl": "0",
"projectcalico.org/IPv4Address": "172.30.2.2/24",
"projectcalico.org/IPv4IPIPTunnelAddr": "192.168.1.1",
"volumes.kubernetes.io/controller-managed-attach-detach": "true"
},
"managedFields": [
{
"manager": "kubelet",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-03-03T15:32:07Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
".": {},
"f:volumes.kubernetes.io/controller-managed-attach-detach": {}
},
"f:labels": {
".": {},
"f:beta.kubernetes.io/arch": {},
"f:beta.kubernetes.io/os": {},
"f:kubernetes.io/arch": {},
"f:kubernetes.io/hostname": {},
"f:kubernetes.io/os": {}
}
}
}
},
{
"manager": "kubeadm",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-03-03T15:32:08Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
"f:kubeadm.alpha.kubernetes.io/cri-socket": {}
}
}
}
},
{
"manager": "kube-controller-manager",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-03-03T15:32:16Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
"f:node.alpha.kubernetes.io/ttl": {}
}
},
"f:spec": {
"f:podCIDR": {},
"f:podCIDRs": {
".": {},
"v:\"192.168.1.0/24\"": {}
}
}
}
},
{
"manager": "calico-node",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-03-03T15:32:21Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
"f:projectcalico.org/IPv4Address": {},
"f:projectcalico.org/IPv4IPIPTunnelAddr": {}
}
}
},
"subresource": "status"
},
{
"manager": "flanneld",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-03-04T04:24:24Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
"f:flannel.alpha.coreos.com/backend-data": {},
"f:flannel.alpha.coreos.com/backend-type": {},
"f:flannel.alpha.coreos.com/kube-subnet-manager": {},
"f:flannel.alpha.coreos.com/public-ip": {}
}
},
"f:status": {
"f:conditions": {
"k:{\"type\":\"NetworkUnavailable\"}": {
".": {},
"f:lastHeartbeatTime": {},
"f:lastTransitionTime": {},
"f:message": {},
"f:reason": {},
"f:status": {},
"f:type": {}
}
}
}
},
"subresource": "status"
},
{
"manager": "kubelet",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-03-04T05:05:11Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:status": {
"f:conditions": {
"k:{\"type\":\"DiskPressure\"}": {
"f:lastHeartbeatTime": {}
},
"k:{\"type\":\"MemoryPressure\"}": {
"f:lastHeartbeatTime": {}
},
"k:{\"type\":\"PIDPressure\"}": {
"f:lastHeartbeatTime": {}
},
"k:{\"type\":\"Ready\"}": {
"f:lastHeartbeatTime": {},
"f:lastTransitionTime": {},
"f:message": {},
"f:reason": {},
"f:status": {}
}
},
"f:images": {},
"f:nodeInfo": {
"f:bootID": {},
"f:systemUUID": {}
}
}
},
"subresource": "status"
}
]
},
"spec": {
"podCIDR": "192.168.1.0/24",
"podCIDRs": [
"192.168.1.0/24"
]
},
"status": {
"capacity": {
"cpu": "1",
"ephemeral-storage": "20134592Ki",
"hugepages-2Mi": "0",
"memory": "2030940Ki",
"pods": "110"
},
"allocatable": {
"cpu": "1",
"ephemeral-storage": "19586931083",
"hugepages-2Mi": "0",
"memory": "1928540Ki",
"pods": "110"
},
"conditions": [
{
"type": "NetworkUnavailable",
"status": "False",
"lastHeartbeatTime": "2024-03-04T04:24:24Z",
"lastTransitionTime": "2024-03-04T04:24:24Z",
"reason": "FlannelIsUp",
"message": "Flannel is running on this node"
},
{
"type": "MemoryPressure",
"status": "False",
"lastHeartbeatTime": "2024-03-04T05:05:11Z",
"lastTransitionTime": "2024-03-03T15:32:07Z",
"reason": "KubeletHasSufficientMemory",
"message": "kubelet has sufficient memory available"
},
{
"type": "DiskPressure",
"status": "False",
"lastHeartbeatTime": "2024-03-04T05:05:11Z",
"lastTransitionTime": "2024-03-03T15:32:07Z",
"reason": "KubeletHasNoDiskPressure",
"message": "kubelet has no disk pressure"
},
{
"type": "PIDPressure",
"status": "False",
"lastHeartbeatTime": "2024-03-04T05:05:11Z",
"lastTransitionTime": "2024-03-03T15:32:07Z",
"reason": "KubeletHasSufficientPID",
"message": "kubelet has sufficient PID available"
},
{
"type": "Ready",
"status": "True",
"lastHeartbeatTime": "2024-03-04T05:05:11Z",
"lastTransitionTime": "2024-03-03T15:32:16Z",
"reason": "KubeletReady",
"message": "kubelet is posting ready status. AppArmor enabled"
}
],
"addresses": [
{
"type": "InternalIP",
"address": "172.30.2.2"
},
{
"type": "Hostname",
"address": "node01"
}
],
"daemonEndpoints": {
"kubeletEndpoint": {
"Port": 10250
}
},
"nodeInfo": {
"machineID": "388a2d0f867a4404bc12a0093bd9ed8d",
"systemUUID": "41f26ab9-4d3a-4984-abc4-f614b02795f9",
"bootID": "43e6078c-8ce2-4bca-9c5a-3559a7c33335",
"kernelVersion": "5.4.0-131-generic",
"osImage": "Ubuntu 20.04.5 LTS",
"containerRuntimeVersion": "containerd://1.7.13",
"kubeletVersion": "v1.29.0",
"kubeProxyVersion": "v1.29.0",
"operatingSystem": "linux",
"architecture": "amd64"
},
"images": [
{
"names": [
"docker.io/calico/cni@sha256:e60b90d7861e872efa720ead575008bc6eca7bee41656735dcaa8210b688fcd9",
"docker.io/calico/cni:v3.24.1"
],
"sizeBytes": 87382462
},
{
"names": [
"docker.io/calico/node@sha256:43f6cee5ca002505ea142b3821a76d585aa0c8d22bc58b7e48589ca7deb48c13",
"docker.io/calico/node:v3.24.1"
],
"sizeBytes": 80180860
},
{
"names": [
"registry.k8s.io/kube-proxy@sha256:8da4de35c4929411300eb8052fdfd34095b6090ed0c8dbc776d58bf1c61a2c89",
"registry.k8s.io/kube-proxy:v1.29.0"
],
"sizeBytes": 28358954
},
{
"names": [
"quay.io/coreos/flannel@sha256:9a296fbb67790659adc3701e287adde3c59803b7fcefe354f1fc482840cdb3d9",
"quay.io/coreos/flannel:v0.15.1"
],
"sizeBytes": 21673107
},
{
"names": [
"registry.k8s.io/coredns/coredns@sha256:1eeb4c7316bacb1d4c8ead65571cd92dd21e27359f0d4917f1a5822a73b75db1",
"registry.k8s.io/coredns/coredns:v1.11.1"
],
"sizeBytes": 18182961
},
{
"names": [
"registry.k8s.io/pause@sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07",
"registry.k8s.io/pause:3.5"
],
"sizeBytes": 301416
}
]
}
}
2 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.