Skip to content

Instantly share code, notes, and snippets.

@mauilion
Created January 21, 2022 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauilion/671ae430c960906345495ce3f3099e11 to your computer and use it in GitHub Desktop.
Save mauilion/671ae430c960906345495ce3f3099e11 to your computer and use it in GitHub Desktop.
{
"status": {
"id": "5694f82f44168cc048e014ae14d1b0c8ef673bec49f329dc169911ea638f63c2",
"metadata": {
"attempt": 0,
"name": "bash"
},
"state": "CONTAINER_RUNNING",
"createdAt": "2022-01-21T17:52:41.161571104Z",
"startedAt": "2022-01-21T17:52:41.299747922Z",
"finishedAt": "0001-01-01T00:00:00Z",
"exitCode": 0,
"image": {
"annotations": {},
"image": "docker.io/library/bash:latest"
},
"imageRef": "docker.io/library/bash@sha256:f34654f94d3d227b7a19e2e8156c8ac7e68f45639d67ba8acee87c18f54261ca",
"reason": "",
"message": "",
"labels": {
"io.kubernetes.container.name": "bash",
"io.kubernetes.pod.name": "bash",
"io.kubernetes.pod.namespace": "default",
"io.kubernetes.pod.uid": "eb052b63-ea96-4728-ab4a-64ab3babccd7"
},
"annotations": {
"io.kubernetes.container.hash": "d4632c8f",
"io.kubernetes.container.restartCount": "0",
"io.kubernetes.container.terminationMessagePath": "/dev/termination-log",
"io.kubernetes.container.terminationMessagePolicy": "File",
"io.kubernetes.pod.terminationGracePeriod": "30"
},
"mounts": [
{
"containerPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"hostPath": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/volumes/kubernetes.io~projected/kube-api-access-wwbzt",
"propagation": "PROPAGATION_PRIVATE",
"readonly": true,
"selinuxRelabel": false
},
{
"containerPath": "/etc/hosts",
"hostPath": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/etc-hosts",
"propagation": "PROPAGATION_PRIVATE",
"readonly": false,
"selinuxRelabel": false
},
{
"containerPath": "/dev/termination-log",
"hostPath": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/containers/bash/db94899e",
"propagation": "PROPAGATION_PRIVATE",
"readonly": false,
"selinuxRelabel": false
}
],
"logPath": "/var/log/pods/default_bash_eb052b63-ea96-4728-ab4a-64ab3babccd7/bash/0.log"
},
"info": {
"sandboxID": "3f7d3ca7a159568170d5793bab3a222763e7ddad1d968943e9adb757201daaa6",
"pid": 108034,
"removing": false,
"snapshotKey": "5694f82f44168cc048e014ae14d1b0c8ef673bec49f329dc169911ea638f63c2",
"snapshotter": "overlayfs",
"runtimeType": "io.containerd.runc.v2",
"runtimeOptions": {
"systemd_cgroup": true
},
"config": {
"metadata": {
"name": "bash"
},
"image": {
"image": "sha256:5557e073f11c1ffdd418c40394b79c736b492fd7ddf95124d022290985e09c55"
},
"envs": [
{
"key": "KUBERNETES_SERVICE_PORT",
"value": "443"
},
{
"key": "KUBERNETES_SERVICE_PORT_HTTPS",
"value": "443"
},
{
"key": "KUBERNETES_PORT",
"value": "tcp://10.96.0.1:443"
},
{
"key": "KUBERNETES_PORT_443_TCP",
"value": "tcp://10.96.0.1:443"
},
{
"key": "KUBERNETES_PORT_443_TCP_PROTO",
"value": "tcp"
},
{
"key": "KUBERNETES_PORT_443_TCP_PORT",
"value": "443"
},
{
"key": "KUBERNETES_PORT_443_TCP_ADDR",
"value": "10.96.0.1"
},
{
"key": "KUBERNETES_SERVICE_HOST",
"value": "10.96.0.1"
}
],
"mounts": [
{
"container_path": "/var/run/secrets/kubernetes.io/serviceaccount",
"host_path": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/volumes/kubernetes.io~projected/kube-api-access-wwbzt",
"readonly": true
},
{
"container_path": "/etc/hosts",
"host_path": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/etc-hosts"
},
{
"container_path": "/dev/termination-log",
"host_path": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/containers/bash/db94899e"
}
],
"labels": {
"io.kubernetes.container.name": "bash",
"io.kubernetes.pod.name": "bash",
"io.kubernetes.pod.namespace": "default",
"io.kubernetes.pod.uid": "eb052b63-ea96-4728-ab4a-64ab3babccd7"
},
"annotations": {
"io.kubernetes.container.hash": "d4632c8f",
"io.kubernetes.container.restartCount": "0",
"io.kubernetes.container.terminationMessagePath": "/dev/termination-log",
"io.kubernetes.container.terminationMessagePolicy": "File",
"io.kubernetes.pod.terminationGracePeriod": "30"
},
"log_path": "bash/0.log",
"stdin": true,
"stdin_once": true,
"tty": true,
"linux": {
"resources": {
"cpu_period": 100000,
"cpu_shares": 2,
"oom_score_adj": 1000,
"hugepage_limits": [
{
"page_size": "2MB"
},
{
"page_size": "1GB"
}
]
},
"security_context": {
"namespace_options": {
"pid": 1
},
"run_as_user": {},
"masked_paths": [
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"readonly_paths": [
"/proc/asound",
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"seccomp": {
"profile_type": 1
}
}
}
},
"runtimeSpec": {
"ociVersion": "1.0.2-dev",
"process": {
"terminal": true,
"user": {
"uid": 0,
"gid": 0,
"additionalGids": [
1,
2,
3,
4,
6,
10,
11,
20,
26,
27
]
},
"args": [
"docker-entrypoint.sh",
"bash"
],
"env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"TERM=xterm",
"HOSTNAME=bash",
"_BASH_VERSION=5.1.16",
"_BASH_BASELINE=5.1.16",
"_BASH_BASELINE_PATCH=16",
"_BASH_LATEST_PATCH=16",
"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",
"KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1",
"KUBERNETES_SERVICE_HOST=10.96.0.1"
],
"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"
]
},
"apparmorProfile": "cri-containerd.apparmor.d",
"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/eb052b63-ea96-4728-ab4a-64ab3babccd7/etc-hosts",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/dev/termination-log",
"type": "bind",
"source": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/containers/bash/db94899e",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/etc/hostname",
"type": "bind",
"source": "/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/3f7d3ca7a159568170d5793bab3a222763e7ddad1d968943e9adb757201daaa6/hostname",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/etc/resolv.conf",
"type": "bind",
"source": "/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/3f7d3ca7a159568170d5793bab3a222763e7ddad1d968943e9adb757201daaa6/resolv.conf",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/dev/shm",
"type": "bind",
"source": "/run/containerd/io.containerd.grpc.v1.cri/sandboxes/3f7d3ca7a159568170d5793bab3a222763e7ddad1d968943e9adb757201daaa6/shm",
"options": [
"rbind",
"rprivate",
"rw"
]
},
{
"destination": "/var/run/secrets/kubernetes.io/serviceaccount",
"type": "bind",
"source": "/var/lib/kubelet/pods/eb052b63-ea96-4728-ab4a-64ab3babccd7/volumes/kubernetes.io~projected/kube-api-access-wwbzt",
"options": [
"rbind",
"rprivate",
"ro"
]
}
],
"annotations": {
"io.kubernetes.cri.container-name": "bash",
"io.kubernetes.cri.container-type": "container",
"io.kubernetes.cri.image-name": "docker.io/library/bash:latest",
"io.kubernetes.cri.sandbox-id": "3f7d3ca7a159568170d5793bab3a222763e7ddad1d968943e9adb757201daaa6",
"io.kubernetes.cri.sandbox-name": "bash",
"io.kubernetes.cri.sandbox-namespace": "default"
},
"linux": {
"resources": {
"devices": [
{
"allow": false,
"access": "rwm"
}
],
"memory": {},
"cpu": {
"shares": 2,
"period": 100000
}
},
"cgroupsPath": "kubepods-besteffort-podeb052b63_ea96_4728_ab4a_64ab3babccd7.slice:cri-containerd:5694f82f44168cc048e014ae14d1b0c8ef673bec49f329dc169911ea638f63c2",
"namespaces": [
{
"type": "pid"
},
{
"type": "ipc",
"path": "/proc/108000/ns/ipc"
},
{
"type": "uts",
"path": "/proc/108000/ns/uts"
},
{
"type": "mount"
},
{
"type": "network",
"path": "/proc/108000/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