K8sExperimentalAttributes
Attributes
- Source
- K8sExperimentalAttributes.scala
- Graph
-
- Supertypes
- Self type
Members list
Value members
Concrete fields
The name of the cluster.
A pseudo-ID for the cluster, set to the UID of the kube-system
namespace.
A pseudo-ID for the cluster, set to the UID of the kube-system
namespace.
Attributes
- Note
-
-
K8s doesn't have support for obtaining a cluster ID. If this is ever added, we will recommend collecting the
k8s.cluster.uid
through the official APIs. In the meantime, we are able to use theuid
of thekube-system
namespace as a proxy for cluster ID. Read on for the rationale. -
Every object created in a K8s cluster is assigned a distinct UID. The
kube-system
namespace is used by Kubernetes itself and will exist for the lifetime of the cluster. Using theuid
of thekube-system
namespace is a reasonable proxy for the K8s ClusterID as it will only change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are UUIDs as standardized by <a href="https://www.itu.int/ITU-T/studygroups/com17/oid.html">ISO/IEC 9834-8 and ITU-T X.667. Which states:- If generated according to one of the mechanisms defined in Rec.
- ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be different from all other UUIDs generated before 3603 A.D., or is extremely likely to be different (depending on the mechanism chosen). - Therefore, UIDs between clusters should be extremely unlikely to conflict.
-
- Source
- K8sExperimentalAttributes.scala
The name of the Container from Pod specification, must be unique within a Pod.
The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (container.name
).
Attributes
Number of times the container was restarted.
Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec.
Attributes
The name of the CronJob.
The UID of the CronJob.
The name of the DaemonSet.
The UID of the DaemonSet.
The name of the Deployment.
The UID of the Deployment.
The name of the Job.
The UID of the Job.
The name of the namespace that the pod is running in.
The name of the namespace that the pod is running in.
Attributes
The name of the Node.
The UID of the Node.
The annotation key-value pairs placed on the Pod, the <key>
being the annotation name, the value being the annotation value.
The annotation key-value pairs placed on the Pod, the <key>
being the annotation name, the value being the annotation value.
Attributes
The label key-value pairs placed on the Pod, the <key>
being the label name, the value being the label value.
The label key-value pairs placed on the Pod, the <key>
being the label name, the value being the label value.
Attributes
The name of the Pod.
The UID of the Pod.
The name of the ReplicaSet.
The UID of the ReplicaSet.
The name of the StatefulSet.
The UID of the StatefulSet.
Deprecated fields
Deprecated, use k8s.pod.label
instead.
Deprecated, use k8s.pod.label
instead.
Attributes
- Deprecated
- true
- Source
- K8sExperimentalAttributes.scala