Skip to content

Instantly share code, notes, and snippets.

@thehajime
Created August 7, 2020 05:29
Show Gist options
  • Save thehajime/450bddd34052d43067cc742fbd7a4317 to your computer and use it in GitHub Desktop.
Save thehajime/450bddd34052d43067cc742fbd7a4317 to your computer and use it in GitHub Desktop.
root@kind-control-plane:/# ctr -n k8s.io c info de310650a741c6439fd47fa38f77bc58de04294bda645a5061f820b10f8a603f
{
"ID": "de310650a741c6439fd47fa38f77bc58de04294bda645a5061f820b10f8a603f",
"Labels": {
"io.cri-containerd.kind": "container",
"io.kubernetes.container.name": "helloworld-runu",
"io.kubernetes.pod.name": "helloworld-runu-5bdf77696c-sbkm2",
"io.kubernetes.pod.namespace": "default",
"io.kubernetes.pod.uid": "06a08edc-6ad6-452b-9211-8461a8af0fff"
},
"Image": "docker.io/thehajime/runu-base:0.3",
"Runtime": {
"Name": "io.containerd.runtime.v1.linux",
"Options": {
"type_url": "containerd.linux.runc.RuncOptions",
"value": "Cg0vdXNyL2Jpbi9ydW51"
}
},
"SnapshotKey": "de310650a741c6439fd47fa38f77bc58de04294bda645a5061f820b10f8a603f",
"Snapshotter": "overlayfs",
"CreatedAt": "2020-08-07T05:26:12.547763823Z",
"UpdatedAt": "2020-08-07T05:26:12.547763823Z",
"Extensions": {
"io.cri-containerd.container.metadata": {
"type_url": "github.com/containerd/cri/pkg/store/container/Metadata",
"value": "eyJWZXJzaW9uIjoidjEiLCJNZXRhZGF0YSI6eyJJRCI6ImRlMzEwNjUwYTc0MWM2NDM5ZmQ0N2ZhMzhmNzdiYzU4ZGUwNDI5NGJkYTY0NWE1MDYxZjgyMGIxMGY4YTYwM2YiLCJOYW1lIjoiaGVsbG93b3JsZC1ydW51X2hlbGxvd29ybGQtcnVudS01YmRmNzc2OTZjLXNia20yX2RlZmF1bHRfMDZhMDhlZGMtNmFkNi00NTJiLTkyMTEtODQ2MWE4YWYwZmZmXzMwNjYiLCJTYW5kYm94SUQiOiI3YzUyODY3YWYyZDhlYjQ1YWExZTkzNjdiYmI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yIsIlN0b3BTaWduYWwiOiIifX0="
}
},
"Spec": {
"ociVersion": "1.0.1-dev",
"process": {
"user": {
"uid": 0,
"gid": 0
},
"args": [
"ping",
"-c",
"50",
"8.8.8.8"
],
"env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOSTNAME=helloworld-runu-5bdf77696c-sbkm2",
"RUMP_VERBOSE=1",
"KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1",
"KUBERNETES_SERVICE_HOST=10.96.0.1",
"KUBERNETES_SERVICE_PORT=443",
"KUBERNETES_SERVICE_PORT_HTTPS=443",
"KUBERNETES_PORT=tcp://10.96.0.1:443",
"KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443",
"KUBERNETES_PORT_443_TCP_PROTO=tcp",
"KUBERNETES_PORT_443_TCP_PORT=443"
],
"cwd": "/",
"capabilities": {
"bounding": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FSETID",
"CAP_FOWNER",
"CAP_MKNOD",
"CAP_NET_RAW",
"CAP_SETGID",
"CAP_SETUID",
"CAP_SETFCAP",
"CAP_SETPCAP",
"CAP_NET_BIND_SERVICE",
"CAP_SYS_CHROOT",
"CAP_KILL",
"CAP_AUDIT_WRITE"
],
"effective": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FSETID",
"CAP_FOWNER",
"CAP_MKNOD",
"CAP_NET_RAW",
"CAP_SETGID",
"CAP_SETUID",
"CAP_SETFCAP",
"CAP_SETPCAP",
"CAP_NET_BIND_SERVICE",
"CAP_SYS_CHROOT",
"CAP_KILL",
"CAP_AUDIT_WRITE"
],
"inheritable": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FSETID",
"CAP_FOWNER",
"CAP_MKNOD",
"CAP_NET_RAW",
"CAP_SETGID",
"CAP_SETUID",
"CAP_SETFCAP",
"CAP_SETPCAP",
"CAP_NET_BIND_SERVICE",
"CAP_SYS_CHROOT",
"CAP_KILL",
"CAP_AUDIT_WRITE"
],
"permitted": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FSETID",
"CAP_FOWNER",
"CAP_MKNOD",
"CAP_NET_RAW",
"CAP_SETGID",
"CAP_SETUID",
"CAP_SETFCAP",
"CAP_SETPCAP",
"CAP_NET_BIND_SERVICE",
"CAP_SYS_CHROOT",
"CAP_KILL",
"CAP_AUDIT_WRITE"
]
},
"oomScoreAdj": 1000
},
"root": {
"path": "rootfs"
},
"mounts": [
{
"destination": "/proc",
"type": "proc",
"source": "proc",
"options": [
"nosuid",
"noexec",
"nodev"
]
},
{
"destination": "/dev",
"type": "tmpfs",
"source": "tmpfs",
"options": [
"nosuid",
"strictatime",
"mode=755",
"size=65536k"
]
},
{
"destination": "/dev/pts",
"type": "devpts",
"source": "devpts",
"options": [
"nosuid",
"noexec",
"newinstance",
"ptmxmode=0666",
"mode=0620",
"gid=5"
]
},
{
"destination": "/dev/mqueue",
"type": "mqueue",
"source": "mqueue",
"options": [
"nosuid",
"noexec",
"nodev"
]
},
{
"destination": "/sys",
"type": "sysfs",
"source": "sysfs",
"options": [
"nosuid",
"noexec",
"nodev",
"ro"
]
},
{
"destination": "/sys/fs/cgroup",
"type": "cgroup",
"source": "cgroup",
"options": [
"nosuid",
"noexec",
"nodev",
"relatime",
"ro"
]
},
{
"destination": "/etc/hosts",
"type": "bind",
"source": "/var/lib/kubelet/pods/06a08edc-6ad6-452b-9211-8461a8af0fff/etc-hosts",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/dev/termination-log",
"type": "bind",
"source": "/var/lib/kubelet/pods/06a08edc-6ad6-452b-9211-8461a8af0fff/containers/helloworld-runu/54a5daee",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/etc/hostname",
"type": "bind",
"source": "/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/7c52867af2d8eb45aa1e9367bbb2e783b2153696ca81844103d35b1509658699/hostname",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/etc/resolv.conf",
"type": "bind",
"source": "/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/7c52867af2d8eb45aa1e9367bbb2e783b2153696ca81844103d35b1509658699/resolv.conf",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/dev/shm",
"type": "bind",
"source": "/run/containerd/io.containerd.grpc.v1.cri/sandboxes/7c52867af2d8eb45aa1e9367bbb2e783b2153696ca81844103d35b1509658699/shm",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/var/run/secrets/kubernetes.io/serviceaccount",
"type": "bind",
"source": "/var/lib/kubelet/pods/06a08edc-6ad6-452b-9211-8461a8af0fff/volumes/kubernetes.io~secret/default-token-ffpx2",
"options": [
"rbind",
"rprivate",
"ro"
]
}
],
"annotations": {
"io.kubernetes.cri.container-type": "container",
"io.kubernetes.cri.sandbox-id": "7c52867af2d8eb45aa1e9367bbb2e783b2153696ca81844103d35b1509658699"
},
"linux": {
"resources": {
"devices": [
{
"allow": false,
"access": "rwm"
}
],
"memory": {},
"cpu": {
"shares": 2,
"period": 100000
}
},
"cgroupsPath": "/kubepods/besteffort/pod06a08edc-6ad6-452b-9211-8461a8af0fff/de310650a741c6439fd47fa38f77bc58de04294bda645a5061f820b10f8a603f",
"namespaces": [
{
"type": "pid"
},
{
"type": "ipc",
"path": "/proc/1245/ns/ipc"
},
{
"type": "uts",
"path": "/proc/1245/ns/uts"
},
{
"type": "mount"
},
{
"type": "network",
"path": "/proc/1245/ns/net"
}
],
"maskedPaths": [
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"readonlyPaths": [
"/proc/asound",
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment