Skip to content

Instantly share code, notes, and snippets.

@openstacker
Created August 16, 2018 04:18
Show Gist options
  • Save openstacker/bf2acbfb013cd12ed6e2f82e3d240506 to your computer and use it in GitHub Desktop.
Save openstacker/bf2acbfb013cd12ed6e2f82e3d240506 to your computer and use it in GitHub Desktop.
[{'api_version': None,
'kind': None,
'metadata': {'annotations': {u'node.alpha.kubernetes.io/ttl': '0',
u'volumes.kubernetes.io/controller-managed-attach-detach': 'true'},
'cluster_name': None,
'creation_timestamp': datetime.datetime(2018, 8, 15, 22, 39, 15, tzinfo=tzutc()),
'deletion_grace_period_seconds': None,
'deletion_timestamp': None,
'finalizers': None,
'generate_name': None,
'generation': None,
'initializers': None,
'labels': {u'beta.kubernetes.io/arch': 'amd64',
u'beta.kubernetes.io/os': 'linux',
u'kubernetes.io/hostname': 'k8scluster-ydz7cfbxqqu3-master-0'},
'name': 'k8scluster-ydz7cfbxqqu3-master-0',
'namespace': None,
'owner_references': None,
'resource_version': '23929',
'self_link': '/api/v1/nodes/k8scluster-ydz7cfbxqqu3-master-0',
'uid': '09d26fe0-a0dc-11e8-a432-fa163e7f4a01'},
'spec': {'config_source': None,
'external_id': None,
'pod_cidr': None,
'provider_id': None,
'taints': [{'effect': 'NoSchedule',
'key': 'CriticalAddonsOnly',
'time_added': None,
'value': 'True'},
{'effect': 'NoSchedule',
'key': 'dedicated',
'time_added': None,
'value': 'master'}],
'unschedulable': True},
'status': {'addresses': [{'address': '10.0.0.7', 'type': 'InternalIP'},
{'address': 'k8scluster-ydz7cfbxqqu3-master-0',
'type': 'Hostname'}],
'allocatable': {u'cpu': '1',
u'ephemeral-storage': '8684096703',
u'hugepages-2Mi': '0',
u'memory': '906160Ki',
u'pods': '110'},
'capacity': {u'cpu': '1',
u'ephemeral-storage': '9202Mi',
u'hugepages-2Mi': '0',
u'memory': '1008560Ki',
u'pods': '110'},
'conditions': [{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 26, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet has sufficient disk space available',
'reason': 'KubeletHasSufficientDisk',
'status': 'False',
'type': 'OutOfDisk'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 26, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet has sufficient memory available',
'reason': 'KubeletHasSufficientMemory',
'status': 'False',
'type': 'MemoryPressure'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 26, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet has no disk pressure',
'reason': 'KubeletHasNoDiskPressure',
'status': 'False',
'type': 'DiskPressure'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 26, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 15, 22, 39, 15, tzinfo=tzutc()),
'message': 'kubelet has sufficient PID available',
'reason': 'KubeletHasSufficientPID',
'status': 'False',
'type': 'PIDPressure'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 26, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet is posting ready status',
'reason': 'KubeletReady',
'status': 'True',
'type': 'Ready'}],
'daemon_endpoints': {'kubelet_endpoint': {'port': 10250}},
'images': [{'names': ['candidate-registry.fedoraproject.org/f27/tools:latest'],
'size_bytes': 543763721},
{'names': ['gcr.io/heptio-images/sonobuoy-plugin-systemd-logs@sha256:58e077ba773ff5d7b6bba90771fad72217f0d10b913bb66bb0afb387c9552788',
'gcr.io/heptio-images/sonobuoy-plugin-systemd-logs:latest'],
'size_bytes': 290839824},
{'names': ['quay.io/calico/node@sha256:7758c25549fcfe677699bbcd3c279b3a174e7cbbbf9d16f3d71713d68f695dfb',
'quay.io/calico/node:v2.6.7'],
'size_bytes': 281572001},
{'names': ['quay.io/calico/cni@sha256:3a23e093b1e98cf232a226fedff591d33919f5297f016a41d8012efc83b23a84',
'quay.io/calico/cni:v1.11.2'],
'size_bytes': 70781000},
{'names': ['gcr.io/heptio-images/sonobuoy@sha256:165df6f635ddd0088ed6686e07ffb47f8dd17fdba153f61dbec9aa80c0d2e0b8',
'gcr.io/heptio-images/sonobuoy:latest'],
'size_bytes': 33379915},
{'names': ['k8s.gcr.io/pause@sha256:f78411e19d84a252e53bff71a4407a5686c46983a2c2eeed83929b888179acea',
'k8s.gcr.io/pause:3.1'],
'size_bytes': 742472}],
'node_info': {'architecture': 'amd64',
'boot_id': '3b6c75e0-40d0-413f-a36d-c82eeaefad2a',
'container_runtime_version': 'docker://1.13.1',
'kernel_version': '4.14.18-300.fc27.x86_64',
'kube_proxy_version': 'v1.11.1',
'kubelet_version': 'v1.11.1',
'machine_id': '8064cf7818d1469ea0c649a91c6a1b0b',
'operating_system': 'linux',
'os_image': 'Debian GNU/Linux 9 (stretch)',
'system_uuid': '8064CF78-18D1-469E-A0C6-49A91C6A1B0B'},
'phase': None,
'volumes_attached': None,
'volumes_in_use': None}}, {'api_version': None,
'kind': None,
'metadata': {'annotations': {u'node.alpha.kubernetes.io/ttl': '0',
u'volumes.kubernetes.io/controller-managed-attach-detach': 'true'},
'cluster_name': None,
'creation_timestamp': datetime.datetime(2018, 8, 15, 22, 45, 25, tzinfo=tzutc()),
'deletion_grace_period_seconds': None,
'deletion_timestamp': None,
'finalizers': None,
'generate_name': None,
'generation': None,
'initializers': None,
'labels': {u'beta.kubernetes.io/arch': 'amd64',
u'beta.kubernetes.io/os': 'linux',
u'kubernetes.io/hostname': 'k8scluster-ydz7cfbxqqu3-minion-0'},
'name': 'k8scluster-ydz7cfbxqqu3-minion-0',
'namespace': None,
'owner_references': None,
'resource_version': '23933',
'self_link': '/api/v1/nodes/k8scluster-ydz7cfbxqqu3-minion-0',
'uid': 'e65468be-a0dc-11e8-a432-fa163e7f4a01'},
'spec': {'config_source': None,
'external_id': None,
'pod_cidr': None,
'provider_id': None,
'taints': None,
'unschedulable': None},
'status': {'addresses': [{'address': '10.0.0.21', 'type': 'InternalIP'},
{'address': 'k8scluster-ydz7cfbxqqu3-minion-0',
'type': 'Hostname'}],
'allocatable': {u'cpu': '1',
u'ephemeral-storage': '8684096703',
u'hugepages-2Mi': '0',
u'memory': '906160Ki',
u'pods': '110'},
'capacity': {u'cpu': '1',
u'ephemeral-storage': '9202Mi',
u'hugepages-2Mi': '0',
u'memory': '1008560Ki',
u'pods': '110'},
'conditions': [{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 28, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet has sufficient disk space available',
'reason': 'KubeletHasSufficientDisk',
'status': 'False',
'type': 'OutOfDisk'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 28, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet has sufficient memory available',
'reason': 'KubeletHasSufficientMemory',
'status': 'False',
'type': 'MemoryPressure'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 28, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet has no disk pressure',
'reason': 'KubeletHasNoDiskPressure',
'status': 'False',
'type': 'DiskPressure'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 28, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 15, 22, 45, 25, tzinfo=tzutc()),
'message': 'kubelet has sufficient PID available',
'reason': 'KubeletHasSufficientPID',
'status': 'False',
'type': 'PIDPressure'},
{'last_heartbeat_time': datetime.datetime(2018, 8, 16, 2, 41, 28, tzinfo=tzutc()),
'last_transition_time': datetime.datetime(2018, 8, 16, 0, 56, 22, tzinfo=tzutc()),
'message': 'kubelet is posting ready status',
'reason': 'KubeletReady',
'status': 'True',
'type': 'Ready'}],
'daemon_endpoints': {'kubelet_endpoint': {'port': 10250}},
'images': [{'names': ['gcr.io/heptio-images/kube-conformance@sha256:5482c7f5f7b874c5c6caec6ddef5406f19a52a2c3a36897cadf0a8f78ab57982',
'gcr.io/heptio-images/kube-conformance:latest'],
'size_bytes': 532133449},
{'names': ['gcr.io/heptio-images/sonobuoy-plugin-systemd-logs@sha256:58e077ba773ff5d7b6bba90771fad72217f0d10b913bb66bb0afb387c9552788',
'gcr.io/heptio-images/sonobuoy-plugin-systemd-logs:latest'],
'size_bytes': 290839824},
{'names': ['quay.io/calico/node@sha256:7758c25549fcfe677699bbcd3c279b3a174e7cbbbf9d16f3d71713d68f695dfb',
'quay.io/calico/node:v2.6.7'],
'size_bytes': 281572001},
{'names': ['gcr.io/google_containers/kubernetes-dashboard-amd64@sha256:dc4026c1b595435ef5527ca598e1e9c4343076926d7d62b365c44831395adbd0',
'gcr.io/google_containers/kubernetes-dashboard-amd64:v1.8.3'],
'size_bytes': 102319441},
{'names': ['gcr.io/google_containers/heapster-amd64@sha256:f58ded16b56884eeb73b1ba256bcc489714570bacdeca43d4ba3b91ef9897b20',
'gcr.io/google_containers/heapster-amd64:v1.4.2'],
'size_bytes': 73404034},
{'names': ['quay.io/calico/cni@sha256:3a23e093b1e98cf232a226fedff591d33919f5297f016a41d8012efc83b23a84',
'quay.io/calico/cni:v1.11.2'],
'size_bytes': 70781000},
{'names': ['quay.io/calico/kube-controllers@sha256:e60bdbab2f57540e68f9e8b1a585913e14f0e8ff0628f1e42ad69e4bfb706840',
'quay.io/calico/kube-controllers:v1.0.3'],
'size_bytes': 52247098},
{'names': ['docker.io/googlecontainer/cluster-proportional-autoscaler-amd64@sha256:621d77fe109a75e1381b10c2525d8d62656b0192ecdbab7e5d26a9bd0dfbb76a',
'docker.io/googlecontainer/cluster-proportional-autoscaler-amd64:1.1.2'],
'size_bytes': 50481722},
{'names': ['docker.io/coredns/coredns@sha256:54e6d446cf14791230000eb9259e65717e147187f01f0534052a60f50b96186f',
'docker.io/coredns/coredns:1.0.1'],
'size_bytes': 45119273},
{'names': ['gcr.io/heptio-images/sonobuoy@sha256:165df6f635ddd0088ed6686e07ffb47f8dd17fdba153f61dbec9aa80c0d2e0b8',
'gcr.io/heptio-images/sonobuoy:latest',
'gcr.io/heptio-images/sonobuoy:v0.11.6'],
'size_bytes': 33379915},
{'names': ['gcr.io/kubernetes-e2e-test-images/serve-hostname-amd64@sha256:2dd4032e98a0450d95a0ac71a5e465f542a900812d8c41bc6ca635aed1a5fc91',
'gcr.io/kubernetes-e2e-test-images/serve-hostname-amd64:1.0'],
'size_bytes': 5470001},
{'names': ['gcr.io/kubernetes-e2e-test-images/porter-amd64@sha256:824f041b2757f8da2980092ace0991b4b8c6689e76c3b94f677521f7157bc7b8',
'gcr.io/kubernetes-e2e-test-images/porter-amd64:1.0'],
'size_bytes': 4681408},
{'names': ['gcr.io/kubernetes-e2e-test-images/entrypoint-tester-amd64@sha256:ef1e5bf4aa80f899f51d173dfcc3106e8daf4c78c28be135b1d421c97f4c9354',
'gcr.io/kubernetes-e2e-test-images/entrypoint-tester-amd64:1.0'],
'size_bytes': 2729534},
{'names': ['gcr.io/kubernetes-e2e-test-images/mounttest-amd64@sha256:e3e75014e6df02dc21e6fb95f93b989a2ff8a91f36ae88d74eccbabaa21fc211',
'gcr.io/kubernetes-e2e-test-images/mounttest-amd64:1.0'],
'size_bytes': 1563521},
{'names': ['gcr.io/kubernetes-e2e-test-images/mounttest-user-amd64@sha256:1ac490f1442cad4b1c886527470393c71302cc62f5e3304fb08854403cbc68dc',
'gcr.io/kubernetes-e2e-test-images/mounttest-user-amd64:1.0'],
'size_bytes': 1450451},
{'names': ['gcr.io/google_containers/pause@sha256:0d093c962a6c2dd8bb8727b661e2b5f13e9df884af9945b4cc7088d9350cd3ee',
'gcr.io/google_containers/pause:3.0'],
'size_bytes': 746888},
{'names': ['k8s.gcr.io/pause@sha256:f78411e19d84a252e53bff71a4407a5686c46983a2c2eeed83929b888179acea',
'k8s.gcr.io/pause:3.1'],
'size_bytes': 742472}],
'node_info': {'architecture': 'amd64',
'boot_id': '9725a9bd-1c76-4fe7-a1b5-daebe1da0d70',
'container_runtime_version': 'docker://1.13.1',
'kernel_version': '4.14.18-300.fc27.x86_64',
'kube_proxy_version': 'v1.11.1',
'kubelet_version': 'v1.11.1',
'machine_id': '662441eafbe642d5b2d1e55ae5ab99af',
'operating_system': 'linux',
'os_image': 'Debian GNU/Linux 9 (stretch)',
'system_uuid': '662441EA-FBE6-42D5-B2D1-E55AE5AB99AF'},
'phase': None,
'volumes_attached': None,
'volumes_in_use': None}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment