k8slabels

package
v0.0.0-...-5c7ffcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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 GetApp

func GetApp(labels map[string]string) string

我们对app的获取方式有特殊定义, 不允许直接调用该方法取获取

func GetContainerName

func GetContainerName(labels map[string]string) string

func GetNamespace

func GetNamespace(labels map[string]string) string

func GetPodName

func GetPodName(labels map[string]string) string

func GetPodUID

func GetPodUID(labels map[string]string) string

func GetRegion

func GetRegion(labels map[string]string) string

func GetSandboxID

func GetSandboxID(labels map[string]string) string

func GetZone

func GetZone(labels map[string]string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL