Skip to content

Instantly share code, notes, and snippets.

@aiwantaozi
Last active May 4, 2018 11:36
Show Gist options
  • Save aiwantaozi/f9b38ef880249243ff5d53c5eab10146 to your computer and use it in GitHub Desktop.
Save aiwantaozi/f9b38ef880249243ff5d53c5eab10146 to your computer and use it in GitHub Desktop.
k8s-audit-log.md

what crd audit log look like?

It will include the impersonatedUser field, which is rancher user-id. this is for user create/update a new crd obj.

Metadata Level Sample

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T08:48:27Z"
   },
   "level":"Metadata",
   "timestamp":"2018-05-04T08:48:27Z",
   "auditID":"6b27d117-b656-4ede-ac17-9b04561eab10",
   "stage":"ResponseComplete",
   "requestURI":"/apis/management.cattle.io/v3/namespaces/local/clusterloggings/cl-pnxt8",
   "verb":"update",
   "user":{
      "username":"minikube-user",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "impersonatedUser":{
      "username":"u-7gkmh",
      "groups":[
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "192.168.99.1"
   ],
   "objectRef":{
      "resource":"clusterloggings",
      "namespace":"local",
      "name":"cl-pnxt8",
      "apiGroup":"management.cattle.io",
      "apiVersion":"v3"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":200
   },
   "requestReceivedTimestamp":"2018-05-04T08:48:27.849235Z",
   "stageTimestamp":"2018-05-04T08:48:27.852565Z"
}

Request Response level

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T09:53:57Z"
   },
   "level":"RequestResponse",
   "timestamp":"2018-05-04T09:53:57Z",
   "auditID":"f21a67f0-ba15-492e-943d-55b16fe198be",
   "stage":"RequestReceived",
   "requestURI":"/apis/management.cattle.io/v3/namespaces/local/clusterloggings",
   "verb":"create",
   "user":{
      "username":"minikube-user",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "192.168.99.1"
   ],
   "objectRef":{
      "resource":"clusterloggings",
      "namespace":"local",
      "apiGroup":"management.cattle.io",
      "apiVersion":"v3"
   },
   "requestReceivedTimestamp":"2018-05-04T09:53:57.437035Z",
   "stageTimestamp":"2018-05-04T09:53:57.437035Z"
}

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T09:53:57Z"
   },
   "level":"RequestResponse",
   "timestamp":"2018-05-04T09:53:57Z",
   "auditID":"f21a67f0-ba15-492e-943d-55b16fe198be",
   "stage":"ResponseComplete",
   "requestURI":"/apis/management.cattle.io/v3/namespaces/local/clusterloggings",
   "verb":"create",
   "user":{
      "username":"minikube-user",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "impersonatedUser":{
      "username":"user-85gc8",
      "groups":[
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "192.168.99.1"
   ],
   "objectRef":{
      "resource":"clusterloggings",
      "namespace":"local",
      "apiGroup":"management.cattle.io",
      "apiVersion":"v3"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":201
   },
   "requestObject":{
      "apiVersion":"management.cattle.io/v3",
      "kind":"ClusterLogging",
      "metadata":{
         "annotations":{
            "field.cattle.io/creatorId":"user-85gc8"
         },
         "name":"cl-pkj6j",
         "namespace":"local"
      },
      "spec":{
         "clusterName":"local",
         "elasticsearchConfig":null,
         "embeddedConfig":{
            "dateFormat":"YYYY-MM-DD",
            "indexPrefix":"local",
            "limitsCpu":1000,
            "limitsMemory":512,
            "requestsCpu":1000,
            "requestsMemory":512
         },
         "kafkaConfig":null,
         "outputFlushInterval":3,
         "outputTags":{

         },
         "splunkConfig":null,
         "syslogConfig":null
      }
   },
   "responseObject":{
      "apiVersion":"management.cattle.io/v3",
      "kind":"ClusterLogging",
      "metadata":{
         "annotations":{
            "field.cattle.io/creatorId":"user-85gc8"
         },
         "clusterName":"",
         "creationTimestamp":"2018-05-04T09:53:57Z",
         "name":"cl-pkj6j",
         "namespace":"local",
         "resourceVersion":"1987",
         "selfLink":"/apis/management.cattle.io/v3/namespaces/local/clusterloggings/cl-pkj6j",
         "uid":"101aeda9-4f81-11e8-8a5f-0800276f33d3"
      },
      "spec":{
         "clusterName":"local",
         "elasticsearchConfig":null,
         "embeddedConfig":{
            "dateFormat":"YYYY-MM-DD",
            "indexPrefix":"local",
            "limitsCpu":1000,
            "limitsMemory":512,
            "requestsCpu":1000,
            "requestsMemory":512
         },
         "kafkaConfig":null,
         "outputFlushInterval":3,
         "outputTags":{

         },
         "splunkConfig":null,
         "syslogConfig":null
      }
   },
   "requestReceivedTimestamp":"2018-05-04T09:53:57.437035Z",
   "stageTimestamp":"2018-05-04T09:53:57.443063Z"
}

what orginal k8s resource look like in audit log?

When we use rancher to create a deployment, the audit log will look like below, the deployment stage ResponseComplete will have the impersonatedUser, but the stage RequestReceived and pod, replicaset for that deployment will not have impersonatedUser

Metadata Level Sample

deploy stage ResponseComplete will have our impersonatedUser

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T08:53:33Z"
   },
   "level":"Metadata",
   "timestamp":"2018-05-04T08:53:33Z",
   "auditID":"652938c5-4341-471b-a4b5-a1f478afde62",        //same: id
   "stage":"RequestReceived",                               //diff: receive
   "requestURI":"/apis/apps/v1beta2/namespaces/newns/deployments",
   "verb":"create",
   "user":{
      "username":"minikube-user",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "192.168.99.1"
   ],
   "objectRef":{
      "resource":"deployments",
      "namespace":"newns",
      "apiGroup":"apps",
      "apiVersion":"v1beta2"
   },
   "requestReceivedTimestamp":"2018-05-04T08:53:33.570397Z",
   "stageTimestamp":"2018-05-04T08:53:33.570397Z"
}

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T08:53:33Z"
   },
   "level":"Metadata",
   "timestamp":"2018-05-04T08:53:33Z",
   "auditID":"652938c5-4341-471b-a4b5-a1f478afde62",     //same: id
   "stage":"ResponseComplete",                           //diff: receive
   "requestURI":"/apis/apps/v1beta2/namespaces/newns/deployments",
   "verb":"create",
   "user":{
      "username":"minikube-user",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "impersonatedUser":{
      "username":"u-7gkmh",
      "groups":[
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "192.168.99.1"
   ],
   "objectRef":{
      "resource":"deployments",
      "namespace":"newns",
      "name":"test1",
      "apiGroup":"apps",
      "apiVersion":"v1beta2"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":201
   },
   "requestReceivedTimestamp":"2018-05-04T08:53:33.570397Z",
   "stageTimestamp":"2018-05-04T08:53:33.575043Z"
}

pod will not have our impersonatedUser

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T08:53:33Z"
   },
   "level":"Metadata",
   "timestamp":"2018-05-04T08:53:33Z",
   "auditID":"ab8a9c19-b0b7-4ec1-8818-8ec1b0a6feae",
   "stage":"ResponseComplete",
   "requestURI":"/api/v1/namespaces/newns/pods",
   "verb":"create",
   "user":{
      "username":"minikube",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "127.0.0.1"
   ],
   "objectRef":{
      "resource":"pods",
      "namespace":"newns",
      "apiVersion":"v1"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":201
   },
   "requestReceivedTimestamp":"2018-05-04T08:53:33.584800Z",
   "stageTimestamp":"2018-05-04T08:53:33.623672Z"
}

binding

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T08:53:33Z"
   },
   "level":"Metadata",
   "timestamp":"2018-05-04T08:53:33Z",
   "auditID":"552eaf89-7636-4432-96c3-71450b085ffd",
   "stage":"ResponseComplete",
   "requestURI":"/api/v1/namespaces/newns/pods/test1-54888557d8-d4rh8/binding",
   "verb":"create",
   "user":{
      "username":"minikube",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "127.0.0.1"
   ],
   "objectRef":{
      "resource":"pods",
      "namespace":"newns",
      "name":"test1-54888557d8-d4rh8",
      "uid":"a0237176-4f78-11e8-ab07-0800272f4343",
      "apiVersion":"v1",
      "subresource":"binding"
   },
   "responseStatus":{
      "metadata":{

      },
      "status":"Success",
      "code":201
   },
   "requestReceivedTimestamp":"2018-05-04T08:53:33.639926Z",
   "stageTimestamp":"2018-05-04T08:53:33.657805Z"
}

RequestResponse Level

deployment

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T10:00:38Z"
   },
   "level":"RequestResponse",
   "timestamp":"2018-05-04T10:00:38Z",
   "auditID":"91d668d7-4ac4-48f9-bd1c-be3297bf4416",
   "stage":"ResponseComplete",
   "requestURI":"/apis/apps/v1beta2/namespaces/newns/deployments",
   "verb":"create",
   "user":{
      "username":"minikube-user",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "impersonatedUser":{
      "username":"user-85gc8",
      "groups":[
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "192.168.99.1"
   ],
   "objectRef":{
      "resource":"deployments",
      "namespace":"newns",
      "name":"test1",
      "apiGroup":"apps",
      "apiVersion":"v1beta2"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":201
   },
   "requestObject":{
      "kind":"Deployment",
      "apiVersion":"apps/v1beta2",
      "metadata":{
         "name":"test1",
         "namespace":"newns",
         "creationTimestamp":null,
         "labels":{
            "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
         },
         "annotations":{
            "field.cattle.io/creatorId":"user-85gc8"
         }
      },
      "spec":{
         "replicas":1,
         "selector":{
            "matchLabels":{
               "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
            }
         },
         "template":{
            "metadata":{
               "creationTimestamp":null,
               "labels":{
                  "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
               }
            },
            "spec":{
               "containers":[
                  {
                     "name":"test1",
                     "image":"nginx",
                     "resources":{

                     },
                     "terminationMessagePath":"/dev/termination-log",
                     "terminationMessagePolicy":"File",
                     "imagePullPolicy":"Always",
                     "securityContext":{
                        "capabilities":{

                        },
                        "privileged":false,
                        "runAsNonRoot":false,
                        "readOnlyRootFilesystem":false,
                        "allowPrivilegeEscalation":false
                     },
                     "stdin":true,
                     "tty":true
                  }
               ],
               "restartPolicy":"Always",
               "terminationGracePeriodSeconds":30,
               "dnsPolicy":"ClusterFirst",
               "securityContext":{

               },
               "schedulerName":"default-scheduler"
            }
         },
         "strategy":{
            "type":"RollingUpdate",
            "rollingUpdate":{
               "maxUnavailable":0,
               "maxSurge":1
            }
         },
         "revisionHistoryLimit":10,
         "progressDeadlineSeconds":600
      },
      "status":{

      }
   },
   "responseObject":{
      "kind":"Deployment",
      "apiVersion":"apps/v1beta2",
      "metadata":{
         "name":"test1",
         "namespace":"newns",
         "selfLink":"/apis/apps/v1beta2/namespaces/newns/deployments/test1",
         "uid":"ff5a80a0-4f81-11e8-8a5f-0800276f33d3",
         "resourceVersion":"2703",
         "generation":1,
         "creationTimestamp":"2018-05-04T10:00:38Z",
         "labels":{
            "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
         },
         "annotations":{
            "field.cattle.io/creatorId":"user-85gc8"
         }
      },
      "spec":{
         "replicas":1,
         "selector":{
            "matchLabels":{
               "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
            }
         },
         "template":{
            "metadata":{
               "creationTimestamp":null,
               "labels":{
                  "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
               }
            },
            "spec":{
               "containers":[
                  {
                     "name":"test1",
                     "image":"nginx",
                     "resources":{

                     },
                     "terminationMessagePath":"/dev/termination-log",
                     "terminationMessagePolicy":"File",
                     "imagePullPolicy":"Always",
                     "securityContext":{
                        "capabilities":{

                        },
                        "privileged":false,
                        "runAsNonRoot":false,
                        "readOnlyRootFilesystem":false,
                        "allowPrivilegeEscalation":false
                     },
                     "stdin":true,
                     "tty":true
                  }
               ],
               "restartPolicy":"Always",
               "terminationGracePeriodSeconds":30,
               "dnsPolicy":"ClusterFirst",
               "securityContext":{

               },
               "schedulerName":"default-scheduler"
            }
         },
         "strategy":{
            "type":"RollingUpdate",
            "rollingUpdate":{
               "maxUnavailable":0,
               "maxSurge":1
            }
         },
         "revisionHistoryLimit":10,
         "progressDeadlineSeconds":600
      },
      "status":{

      }
   },
   "requestReceivedTimestamp":"2018-05-04T10:00:38.826877Z",
   "stageTimestamp":"2018-05-04T10:00:38.837144Z"
}

pod

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T10:00:38Z"
   },
   "level":"RequestResponse",
   "timestamp":"2018-05-04T10:00:38Z",
   "auditID":"3f3fedc7-6a0f-4b20-a919-9de17e83d95b",
   "stage":"ResponseComplete",
   "requestURI":"/api/v1/namespaces/newns/pods",
   "verb":"create",
   "user":{
      "username":"minikube",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "127.0.0.1"
   ],
   "objectRef":{
      "resource":"pods",
      "namespace":"newns",
      "apiVersion":"v1"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":201
   },
   "requestObject":{
      "kind":"Pod",
      "apiVersion":"v1",
      "metadata":{
         "generateName":"test1-54888557d8-",
         "creationTimestamp":null,
         "labels":{
            "pod-template-hash":"1044411384",
            "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
         },
         "ownerReferences":[
            {
               "apiVersion":"extensions/v1beta1",
               "kind":"ReplicaSet",
               "name":"test1-54888557d8",
               "uid":"ff5b4554-4f81-11e8-8a5f-0800276f33d3",
               "controller":true,
               "blockOwnerDeletion":true
            }
         ]
      },
      "spec":{
         "containers":[
            {
               "name":"test1",
               "image":"nginx",
               "resources":{

               },
               "terminationMessagePath":"/dev/termination-log",
               "terminationMessagePolicy":"File",
               "imagePullPolicy":"Always",
               "securityContext":{
                  "capabilities":{

                  },
                  "privileged":false,
                  "runAsNonRoot":false,
                  "readOnlyRootFilesystem":false,
                  "allowPrivilegeEscalation":false
               },
               "stdin":true,
               "tty":true
            }
         ],
         "restartPolicy":"Always",
         "terminationGracePeriodSeconds":30,
         "dnsPolicy":"ClusterFirst",
         "securityContext":{

         },
         "schedulerName":"default-scheduler"
      },
      "status":{

      }
   },
   "responseObject":{
      "kind":"Pod",
      "apiVersion":"v1",
      "metadata":{
         "name":"test1-54888557d8-dx6zr",
         "generateName":"test1-54888557d8-",
         "namespace":"newns",
         "selfLink":"/api/v1/namespaces/newns/pods/test1-54888557d8-dx6zr",
         "uid":"ff647c9b-4f81-11e8-8a5f-0800276f33d3",
         "resourceVersion":"2712",
         "creationTimestamp":"2018-05-04T10:00:38Z",
         "labels":{
            "pod-template-hash":"1044411384",
            "workload.user.cattle.io/workloadselector":"deployment-newns-test1"
         },
         "ownerReferences":[
            {
               "apiVersion":"extensions/v1beta1",
               "kind":"ReplicaSet",
               "name":"test1-54888557d8",
               "uid":"ff5b4554-4f81-11e8-8a5f-0800276f33d3",
               "controller":true,
               "blockOwnerDeletion":true
            }
         ]
      },
      "spec":{
         "volumes":[
            {
               "name":"default-token-vv6db",
               "secret":{
                  "secretName":"default-token-vv6db",
                  "defaultMode":420
               }
            }
         ],
         "containers":[
            {
               "name":"test1",
               "image":"nginx",
               "resources":{

               },
               "volumeMounts":[
                  {
                     "name":"default-token-vv6db",
                     "readOnly":true,
                     "mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"
                  }
               ],
               "terminationMessagePath":"/dev/termination-log",
               "terminationMessagePolicy":"File",
               "imagePullPolicy":"Always",
               "securityContext":{
                  "capabilities":{

                  },
                  "privileged":false,
                  "runAsNonRoot":false,
                  "readOnlyRootFilesystem":false,
                  "allowPrivilegeEscalation":false
               },
               "stdin":true,
               "tty":true
            }
         ],
         "restartPolicy":"Always",
         "terminationGracePeriodSeconds":30,
         "dnsPolicy":"ClusterFirst",
         "serviceAccountName":"default",
         "serviceAccount":"default",
         "securityContext":{

         },
         "schedulerName":"default-scheduler"
      },
      "status":{
         "phase":"Pending",
         "qosClass":"BestEffort"
      }
   },
   "requestReceivedTimestamp":"2018-05-04T10:00:38.848851Z",
   "stageTimestamp":"2018-05-04T10:00:38.919193Z"
}

k8s resource not manage by rancher

Metadata Level

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T09:28:19Z"
   },
   "level":"Metadata",
   "timestamp":"2018-05-04T09:28:19Z",
   "auditID":"8ef80234-0569-42a8-8f42-55cd890f72bf",
   "stage":"ResponseComplete",
   "requestURI":"/api/v1/namespaces/kube-system/endpoints/kube-controller-manager",
   "verb":"update",
   "user":{
      "username":"minikube",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "127.0.0.1"
   ],
   "objectRef":{
      "resource":"endpoints",
      "namespace":"kube-system",
      "name":"kube-controller-manager",
      "uid":"89e947c8-4f63-11e8-ab07-0800272f4343",
      "apiVersion":"v1",
      "resourceVersion":"13241"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":200
   },
   "requestReceivedTimestamp":"2018-05-04T09:28:19.075529Z",
   "stageTimestamp":"2018-05-04T09:28:19.077451Z"
}

RequestResponse Level

{
   "kind":"Event",
   "apiVersion":"audit.k8s.io/v1beta1",
   "metadata":{
      "creationTimestamp":"2018-05-04T09:37:11Z"
   },
   "level":"RequestResponse",
   "timestamp":"2018-05-04T09:37:11Z",
   "auditID":"53b5ea37-426a-4850-880b-17090aa1704f",
   "stage":"ResponseComplete",
   "requestURI":"/api/v1/nodes/minikube/status",
   "verb":"patch",
   "user":{
      "username":"minikube",
      "groups":[
         "system:masters",
         "system:authenticated"
      ]
   },
   "sourceIPs":[
      "127.0.0.1"
   ],
   "objectRef":{
      "resource":"nodes",
      "name":"minikube",
      "apiVersion":"v1",
      "subresource":"status"
   },
   "responseStatus":{
      "metadata":{

      },
      "code":200
   },
   "requestObject":{
      "status":{
         "$setElementOrder/conditions":[
            {
               "type":"OutOfDisk"
            },
            {
               "type":"MemoryPressure"
            },
            {
               "type":"DiskPressure"
            },
            {
               "type":"Ready"
            }
         ],
         "conditions":[
            {
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "type":"OutOfDisk"
            },
            {
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "type":"MemoryPressure"
            },
            {
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "type":"DiskPressure"
            },
            {
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "type":"Ready"
            }
         ]
      }
   },
   "responseObject":{
      "kind":"Node",
      "apiVersion":"v1",
      "metadata":{
         "name":"minikube",
         "selfLink":"/api/v1/nodes/minikube/status",
         "uid":"0ba319dc-4f7e-11e8-8a5f-0800276f33d3",
         "resourceVersion":"329",
         "creationTimestamp":"2018-05-04T09:32:21Z",
         "labels":{
            "beta.kubernetes.io/arch":"amd64",
            "beta.kubernetes.io/os":"linux",
            "kubernetes.io/hostname":"minikube"
         },
         "annotations":{
            "node.alpha.kubernetes.io/ttl":"0",
            "volumes.kubernetes.io/controller-managed-attach-detach":"true"
         }
      },
      "spec":{
         "externalID":"minikube"
      },
      "status":{
         "capacity":{
            "cpu":"2",
            "memory":"2048052Ki",
            "pods":"110"
         },
         "allocatable":{
            "cpu":"2",
            "memory":"1945652Ki",
            "pods":"110"
         },
         "conditions":[
            {
               "type":"OutOfDisk",
               "status":"False",
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "lastTransitionTime":"2018-05-04T09:32:21Z",
               "reason":"KubeletHasSufficientDisk",
               "message":"kubelet has sufficient disk space available"
            },
            {
               "type":"MemoryPressure",
               "status":"False",
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "lastTransitionTime":"2018-05-04T09:32:21Z",
               "reason":"KubeletHasSufficientMemory",
               "message":"kubelet has sufficient memory available"
            },
            {
               "type":"DiskPressure",
               "status":"False",
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "lastTransitionTime":"2018-05-04T09:32:21Z",
               "reason":"KubeletHasNoDiskPressure",
               "message":"kubelet has no disk pressure"
            },
            {
               "type":"Ready",
               "status":"True",
               "lastHeartbeatTime":"2018-05-04T09:37:11Z",
               "lastTransitionTime":"2018-05-04T09:32:31Z",
               "reason":"KubeletReady",
               "message":"kubelet is posting ready status"
            }
         ],
         "addresses":[
            {
               "type":"InternalIP",
               "address":"192.168.99.100"
            },
            {
               "type":"Hostname",
               "address":"minikube"
            }
         ],
         "daemonEndpoints":{
            "kubeletEndpoint":{
               "Port":10250
            }
         },
         "nodeInfo":{
            "machineID":"ed57dfb8c43b4fe19f7fd7c27b4a666c",
            "systemUUID":"946E8ED3-DBDE-460A-9211-9C4E443F29A9",
            "bootID":"2e2d9eb1-0e23-41d9-afda-80b93ce435b0",
            "kernelVersion":"4.9.64",
            "osImage":"Buildroot 2017.11",
            "containerRuntimeVersion":"docker://17.9.0",
            "kubeletVersion":"v1.9.4",
            "kubeProxyVersion":"v1.9.4",
            "operatingSystem":"linux",
            "architecture":"amd64"
         },
         "images":[
            {
               "names":[
                  "k8s.gcr.io/kubernetes-dashboard-amd64@sha256:3861695e962972965a4c611bcabc2032f885d8cbdb0bccc9bf513ef16335fe33",
                  "k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.1"
               ],
               "sizeBytes":120712806
            },
            {
               "names":[
                  "gcr.io/k8s-minikube/storage-provisioner@sha256:088daa9fcbccf04c3f415d77d5a6360d2803922190b675cb7fc88a9d2d91985a",
                  "gcr.io/k8s-minikube/storage-provisioner:v1.8.1"
               ],
               "sizeBytes":80815640
            },
            {
               "names":[
                  "gcr.io/google-containers/kube-addon-manager@sha256:90d80609f044c121b0110d71ac02432cf4c0415e8204f25025666179cbb72387",
                  "gcr.io/google-containers/kube-addon-manager:v6.5"
               ],
               "sizeBytes":79532475
            },
            {
               "names":[
                  "k8s.gcr.io/k8s-dns-kube-dns-amd64@sha256:1a3fc069de481ae690188f6f1ba4664b5cc7760af37120f70c86505c79eea61d",
                  "k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.5"
               ],
               "sizeBytes":49387411
            },
            {
               "names":[
                  "k8s.gcr.io/k8s-dns-sidecar-amd64@sha256:9aab42bf6a2a068b797fe7d91a5d8d915b10dbbc3d6f2b10492848debfba6044",
                  "k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.5"
               ],
               "sizeBytes":41819177
            },
            {
               "names":[
                  "k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64@sha256:46b933bb70270c8a02fa6b6f87d440f6f1fce1a5a2a719e164f83f7b109f7544",
                  "k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.5"
               ],
               "sizeBytes":41423617
            },
            {
               "names":[
                  "gcr.io/google_containers/pause-amd64@sha256:163ac025575b775d1c0f9bf0bdd0f086883171eb475b5068e7defa4ca9e76516",
                  "gcr.io/google_containers/pause-amd64:3.0"
               ],
               "sizeBytes":746888
            }
         ]
      }
   },
   "requestReceivedTimestamp":"2018-05-04T09:37:11.823438Z",
   "stageTimestamp":"2018-05-04T09:37:11.826219Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment