Documentation ¶
Overview ¶
Package kuhbernetes provides Decorators for “recovering” Kubernetes pods from the containers found.
Pod Group Decoration ¶
- A Group representing the containers of a pod is typed as "io.kubernetes.pod".
Container Decoration ¶
Containers that are part of a Kubernetes pod are decorated with the pod's namespace, pod's name, and individual container name:
- "io.kubernetes.pod.namespace"
- "io.kubernetes.pod.name"
- "io.kubernetes.container.name"
Especially in the case of dockershim-managed containers, the "io.kubernetes.container.name" specifies the user-defined container name as opposed to the Docker container name, where the latter is under sole control of the dockershim.
Sandbox containers (also termed “pause” containers) are containers created at least in some container engine environments in order to correctly set up a pod's networking before starting any user containers. These infrastructure containers are labelled with:
- "io.kubernetes.sandbox"
Please note that this label is supported by different decorators and thus not limited to containerd CRI-based system configurations, but also applies to, for instance, dockershim-based system configurations.
Trivia ¶
Isn't there a typo in this package name?
Actually not. Kubernetes is all about kettle, not cats. And cows (ger. “Kühe”) are kettle.
Index ¶
Constants ¶
const PodContainerNameLabel = cri.PodContainerNameLabel
PodContainerNameLabel specifies the name of a container inside a pod from the Kubernetes perspective.
const PodGroupType = "io.kubernetes.pod"
PodGroupType identifies container groups representing Kubernetes pods.
const PodNameLabel = cri.PodNameLabel
PodNameLabel specifies the pod name of a container.
const PodNamespaceLabel = cri.PodNamespaceLabel
PodNamespaceLabel specifies the namespace of the pod a container is part of.
const PodSandboxLabel = cri.PodSandboxLabel
PodSandboxLabel marks a container as a sandbox (or "pause") container; it is present only on sandboxes and the label value is irrelevant.
const PodUidLabel = cri.PodUidLabel
PodUidLabel specifies the UID of a pod (=group).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package cri decorates Kubernetes pod groups discovered from CRI-managed containers, based on their CRI-related labels.
|
Package cri decorates Kubernetes pod groups discovered from CRI-managed containers, based on their CRI-related labels. |
Package dockershim decorates Kubernetes pod groups discovered from Docker container names managed by the (in)famous Docker shim.
|
Package dockershim decorates Kubernetes pod groups discovered from Docker container names managed by the (in)famous Docker shim. |