Documentation ¶
Index ¶
- Constants
- func GetApp(labels map[string]string) string
- func GetContainerName(labels map[string]string) string
- func GetNamespace(labels map[string]string) string
- func GetPodName(labels map[string]string) string
- func GetPodUID(labels map[string]string) string
- func GetRegion(labels map[string]string) string
- func GetSandboxID(labels map[string]string) string
- func GetZone(labels map[string]string) string
Constants ¶
View Source
const ( LabelNamespace = "io.kubernetes.pod.namespace" LabelContainerName = "io.kubernetes.container.name" LabelPodName = "io.kubernetes.pod.name" LabelK8sSandboxID = "io.kubernetes.sandbox.id" LabelK8sApp = "app.kubernetes.io/name" // 物理机上特有的几个标记 LabelK8sRegion = "topology.kubernetes.io/region" LabelK8sZone = "topology.kubernetes.io/zone" LabelK8sOs = "kubernetes.io/os" LabelK8sArch = "kubernetes.io/arch" LabelK8sHostname = "kubernetes.io/hostname" LabelK8sNodeInstanceType = "node.kubernetes.io/instance-type" LabelApp = "app" )
Variables ¶
This section is empty.
Functions ¶
func GetContainerName ¶
func GetNamespace ¶
func GetPodName ¶
func GetSandboxID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.