package apis

import "k8s.io/kubernetes/pkg/kubelet/apis"

Index

Constants

const (
	// The OS/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 OS/Arch labels in Kubernetes 1.18.
	LabelOS   = "beta.kubernetes.io/os"
	LabelArch = "beta.kubernetes.io/arch"
)
const (
	// 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"
)

Functions

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

Source Files

well_known_annotations.go well_known_labels.go

Directories

PathSynopsis
pkg/kubelet/apis/config
pkg/kubelet/apis/config/fuzzer
pkg/kubelet/apis/config/scheme
pkg/kubelet/apis/config/v1beta1
pkg/kubelet/apis/config/validation
pkg/kubelet/apis/cri
pkg/kubelet/apis/cri/runtime
pkg/kubelet/apis/cri/runtime/v1alpha2Package v1alpha2 is a generated protocol buffer package.
pkg/kubelet/apis/cri/testing
pkg/kubelet/apis/deviceplugin
pkg/kubelet/apis/deviceplugin/v1alphaPackage deviceplugin is a generated protocol buffer package.
pkg/kubelet/apis/deviceplugin/v1beta1Package v1beta1 is a generated protocol buffer package.
pkg/kubelet/apis/pluginregistration
pkg/kubelet/apis/pluginregistration/v1Package pluginregistration is a generated protocol buffer package.
pkg/kubelet/apis/pluginregistration/v1alpha1Package pluginregistration is a generated protocol buffer package.
pkg/kubelet/apis/pluginregistration/v1beta1Package pluginregistration is a generated protocol buffer package.
pkg/kubelet/apis/podresources
pkg/kubelet/apis/podresources/v1alpha1Package v1alpha1 is a generated protocol buffer package.
pkg/kubelet/apis/resourcemetrics
pkg/kubelet/apis/resourcemetrics/v1alpha1
pkg/kubelet/apis/stats
pkg/kubelet/apis/stats/v1alpha1
Version
v1.14.4
Published
Jul 4, 2019
Platform
js/wasm
Imports
3 packages
Last checked
35 seconds ago

Tools for package owners.