1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
| [root@VM_1_4_centos ~]# kubectl get pod redis-5b4495ddb4-szjtz -o json { "apiVersion": "v1", "kind": "Pod", "metadata": { "annotations": { "tke.cloud.tencent.com/networks-status": "[{\n \"name\": \"tke-bridge\",\n \"ips\": [\n \"172.16.3.92\"\n ],\n \"default\": true,\n \"dns\": {}\n}]" }, "creationTimestamp": "2020-08-25T09:15:55Z", "generateName": "redis-5b4495ddb4-", "labels": { "k8s-app": "redis", "pod-template-hash": "5b4495ddb4", "qcloud-app": "redis" }, "name": "redis-5b4495ddb4-szjtz", "namespace": "default", "ownerReferences": [ { "apiVersion": "apps/v1", "blockOwnerDeletion": true, "controller": true, "kind": "ReplicaSet", "name": "redis-5b4495ddb4", "uid": "bef91151-d94e-46d5-a8a9-59a8f3ae634e" } ], "resourceVersion": "12100505479", "selfLink": "/api/v1/namespaces/default/pods/redis-5b4495ddb4-szjtz", "uid": "968a56ba-80ed-41d3-ad27-deb7d060bfe7" }, "spec": { "containers": [ { "image": "redis", "imagePullPolicy": "Always", "name": "redis", "resources": { "limits": { "cpu": "500m", "memory": "1Gi" }, "requests": { "cpu": "250m", "memory": "256Mi" } }, "securityContext": { "privileged": false }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "default-token-cl2h8", "readOnly": true } ] } ], "dnsPolicy": "ClusterFirst", "enableServiceLinks": true, "imagePullSecrets": [ { "name": "qcloudregistrykey" } ], "nodeName": "10.168.1.4", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "serviceAccount": "default", "serviceAccountName": "default", "terminationGracePeriodSeconds": 30, "volumes": [ { "name": "default-token-cl2h8", "secret": { "defaultMode": 420, "secretName": "default-token-cl2h8" } } ] }, "status": { "conditions": [ { "lastProbeTime": null, "lastTransitionTime": "2020-08-25T09:15:55Z", "status": "True", "type": "Initialized" }, { "lastProbeTime": null, "lastTransitionTime": "2020-08-25T09:15:59Z", "status": "True", "type": "Ready" }, { "lastProbeTime": null, "lastTransitionTime": "2020-08-25T09:15:59Z", "status": "True", "type": "ContainersReady" }, { "lastProbeTime": null, "lastTransitionTime": "2020-08-25T09:15:55Z", "status": "True", "type": "PodScheduled" } ], "containerStatuses": [ { "containerID": "docker://0a4540282684c9dd282d13eba9a4ae44433f625e65ef40473cda7ca00b2ea73e", "image": "redis:latest", "imageID": "docker-pullable://redis@sha256:09c33840ec47815dc0351f1eca3befe741d7105b3e95bc8fdb9a7e4985b9e1e5", "lastState": {}, "name": "redis", "ready": true, "restartCount": 0, "started": true, "state": { "running": { "startedAt": "2020-08-25T09:15:59Z" } } } ], "hostIP": "10.168.1.4", "phase": "Running", "podIP": "172.16.3.92", "podIPs": [ { "ip": "172.16.3.92" } ], "qosClass": "Burstable", "startTime": "2020-08-25T09:15:55Z" } }
|