Back to godoc.org

Package apis

v1.18.8
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Index

Constants

const (
	// LabelOS is a label to indicate the operating system of the node.
	// The OS labels are promoted to GA in 1.14. kubelet applies both beta
	// and GA labels to ensure backward compatibility.
	// TODO: stop applying the beta OS labels in Kubernetes 1.18.
	LabelOS = "beta.kubernetes.io/os"
	// LabelArch is a label to indicate the architecture of the node.
	// The Arch labels are promoted to GA in 1.14. kubelet applies both beta
	// and GA labels to ensure backward compatibility.
	// TODO: stop applying the beta Arch labels in Kubernetes 1.18.
	LabelArch = "beta.kubernetes.io/arch"
)
const (
	// AnnotationProvidedIPAddr is a node IP annotation set by the "external" cloud provider.
	// When kubelet is started with the "external" cloud provider, then
	// it sets this annotation on the node to denote an ip address set from the
	// cmd line flag (--node-ip). This ip is verified with the cloudprovider as valid by
	// the cloud-controller-manager
	AnnotationProvidedIPAddr = "alpha.kubernetes.io/provided-node-ip"
)

func IsKubeletLabel

func IsKubeletLabel(key string) bool

IsKubeletLabel returns true if the label key is one that kubelets are allowed to set on their own Node object. This checks if the key is in the KubeletLabels() list, or has a namespace in the KubeletLabelNamespaces() list.

func KubeletLabelNamespaces

func KubeletLabelNamespaces() []string

KubeletLabelNamespaces returns the list of label key namespaces kubelets are allowed to set on their own Node objects

func KubeletLabels

func KubeletLabels() []string

KubeletLabels returns the list of label keys kubelets are allowed to set on their own Node objects

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier