Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save whatupdave/16d3650266740f495d984aac41f71ba7 to your computer and use it in GitHub Desktop.
Save whatupdave/16d3650266740f495d984aac41f71ba7 to your computer and use it in GitHub Desktop.
$ docker inspect k8s_prometheus-to-sd-exporter_fluentd-gcp-v2.0-d70xs_kube-system_8255735e-6e63-11e7-afdf-42010a800041_0
[
{
"Id": "46252c21f91c33521ed747828f4db244155a7cf018ca43116c3bfcc7302dad60",
"Created": "2017-07-21T22:25:39.01398793Z",
"Path": "/monitor",
"Args": [
"--component=fluentd",
"--stackdriver-prefix=container.googleapis.com/internal/addons",
"--whitelisted-metrics=logging_line_count,logging_entry_count"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 8591,
"ExitCode": 0,
"Error": "",
"StartedAt": "2017-07-21T22:25:39.116645978Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:875335f3c41898bc114722a82404a88c19cd000f4e69c3556b4c60f380ffe8c2",
"ResolvConfPath": "/var/lib/docker/containers/7a822a8e6c685d5631cc148df3c509054a7e1edc736bf34c07330b019a28e22c/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/7a822a8e6c685d5631cc148df3c509054a7e1edc736bf34c07330b019a28e22c/hostname",
"HostsPath": "/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/etc-hosts",
"LogPath": "/var/lib/docker/containers/46252c21f91c33521ed747828f4db244155a7cf018ca43116c3bfcc7302dad60/46252c21f91c33521ed747828f4db244155a7cf018ca43116c3bfcc7302dad60-json.log",
"Name": "/k8s_prometheus-to-sd-exporter_fluentd-gcp-v2.0-d70xs_kube-system_8255735e-6e63-11e7-afdf-42010a800041_0",
"RestartCount": 0,
"Driver": "overlay",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/etc/ssl/certs:/etc/ssl/certs",
"/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/volumes/kubernetes.io~secret/default-token-mljsq:/var/run/secrets/kubernetes.io/serviceaccount:ro",
"/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/etc-hosts:/etc/hosts",
"/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/containers/prometheus-to-sd-exporter/972b47bb:/dev/termination-log"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {
"max-file": "5",
"max-size": "10m"
}
},
"NetworkMode": "container:7a822a8e6c685d5631cc148df3c509054a7e1edc736bf34c07330b019a28e22c",
"PortBindings": null,
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "container:7a822a8e6c685d5631cc148df3c509054a7e1edc736bf34c07330b019a28e22c",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 999,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [
"seccomp=unconfined"
],
"StorageOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 2,
"Memory": 0,
"CgroupParent": "/kubepods/burstable/pod8255735e-6e63-11e7-afdf-42010a800041",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"BlkioIOps": 0,
"BlkioBps": 0,
"SandboxSize": 0
},
"GraphDriver": {
"Name": "overlay",
"Data": {
"LowerDir": "/var/lib/docker/overlay/21ac24d02b6f2782b797a66469a8f210256f37cb5b946994d038b4579f07c3ba/root",
"MergedDir": "/var/lib/docker/overlay/267c45b83e252a8eaf8ae868791186539842d0e4a2195b1440a89a0194919566/merged",
"UpperDir": "/var/lib/docker/overlay/267c45b83e252a8eaf8ae868791186539842d0e4a2195b1440a89a0194919566/upper",
"WorkDir": "/var/lib/docker/overlay/267c45b83e252a8eaf8ae868791186539842d0e4a2195b1440a89a0194919566/work"
}
},
"Mounts": [
{
"Source": "/etc/ssl/certs",
"Destination": "/etc/ssl/certs",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Source": "/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/volumes/kubernetes.io~secret/default-token-mljsq",
"Destination": "/var/run/secrets/kubernetes.io/serviceaccount",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Source": "/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/etc-hosts",
"Destination": "/etc/hosts",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Source": "/var/lib/kubelet/pods/8255735e-6e63-11e7-afdf-42010a800041/containers/prometheus-to-sd-exporter/972b47bb",
"Destination": "/dev/termination-log",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "fluentd-gcp-v2.0-d70xs",
"Domainname": "",
"User": "65534",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"HEAPSTER_PORT_80_TCP=",
"HEAPSTER_PORT_80_TCP_PORT=",
"KUBE_DNS_PORT_53_UDP_ADDR=",
"DEFAULT_HTTP_BACKEND_SERVICE_HOST=",
"KUBERNETES_DASHBOARD_SERVICE_HOST=",
"KUBERNETES_DASHBOARD_PORT=",
"KUBERNETES_SERVICE_HOST=",
"KUBERNETES_SERVICE_PORT_HTTPS=443",
"KUBE_DNS_SERVICE_PORT_DNS=53",
"DEFAULT_HTTP_BACKEND_PORT_80_TCP_ADDR=",
"KUBERNETES_DASHBOARD_SERVICE_PORT=80",
"KUBERNETES_PORT_443_TCP_PROTO=tcp",
"KUBERNETES_PORT_443_TCP_ADDR=",
"KUBE_DNS_SERVICE_HOST=",
"KUBE_DNS_PORT_53_UDP_PORT=53",
"KUBERNETES_DASHBOARD_PORT_80_TCP_PROTO=tcp",
"HEAPSTER_PORT=",
"KUBERNETES_PORT_443_TCP_PORT=443",
"KUBE_DNS_PORT_53_TCP_PROTO=tcp",
"DEFAULT_HTTP_BACKEND_SERVICE_PORT_HTTP=80",
"KUBERNETES_DASHBOARD_PORT_80_TCP_PORT=80",
"KUBE_DNS_PORT_53_UDP_PROTO=udp",
"KUBE_DNS_PORT_53_TCP_PORT=53",
"HEAPSTER_SERVICE_HOST=",
"KUBERNETES_SERVICE_PORT=443",
"KUBERNETES_PORT=",
"KUBE_DNS_PORT_53_TCP=",
"KUBERNETES_DASHBOARD_PORT_80_TCP=",
"KUBERNETES_DASHBOARD_PORT_80_TCP_ADDR=",
"KUBE_DNS_PORT_53_TCP_ADDR=",
"DEFAULT_HTTP_BACKEND_SERVICE_PORT=80",
"DEFAULT_HTTP_BACKEND_PORT=",
"DEFAULT_HTTP_BACKEND_PORT_80_TCP=",
"HEAPSTER_SERVICE_PORT=80",
"KUBE_DNS_SERVICE_PORT=53",
"KUBE_DNS_SERVICE_PORT_DNS_TCP=53",
"KUBE_DNS_PORT=udp://:53",
"HEAPSTER_PORT_80_TCP_ADDR=",
"HEAPSTER_PORT_80_TCP_PROTO=tcp",
"KUBERNETES_PORT_443_TCP=",
"KUBE_DNS_PORT_53_UDP=udp://:53",
"DEFAULT_HTTP_BACKEND_PORT_80_TCP_PROTO=tcp",
"DEFAULT_HTTP_BACKEND_PORT_80_TCP_PORT=80",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": null,
"Image": "sha256:875335f3c41898bc114722a82404a88c19cd000f4e69c3556b4c60f380ffe8c2",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/monitor",
"--component=fluentd",
"--stackdriver-prefix=container.googleapis.com/internal/addons",
"--whitelisted-metrics=logging_line_count,logging_entry_count"
],
"OnBuild": null,
"Labels": {
"annotation.io.kubernetes.container.hash": "fd83e6f0",
"annotation.io.kubernetes.container.restartCount": "0",
"annotation.io.kubernetes.container.terminationMessagePath": "/dev/termination-log",
"annotation.io.kubernetes.container.terminationMessagePolicy": "File",
"annotation.io.kubernetes.pod.terminationGracePeriod": "30",
"io.kubernetes.container.logpath": "/var/log/pods/8255735e-6e63-11e7-afdf-42010a800041/prometheus-to-sd-exporter_0.log",
"io.kubernetes.container.name": "prometheus-to-sd-exporter",
"io.kubernetes.docker.type": "container",
"io.kubernetes.pod.name": "fluentd-gcp-v2.0-d70xs",
"io.kubernetes.pod.namespace": "kube-system",
"io.kubernetes.pod.uid": "8255735e-6e63-11e7-afdf-42010a800041",
"io.kubernetes.sandbox.id": "7a822a8e6c685d5631cc148df3c509054a7e1edc736bf34c07330b019a28e22c"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": null,
"SandboxKey": "",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": null
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment