package apis
import "k8s.io/kubernetes/pkg/kubelet/apis"
Index ¶
- Constants
- Variables
- func IsKubeletLabel(key string) bool
- func KubeletLabelNamespaces() []string
- func KubeletLabels() []string
Constants ¶
const ( LabelHostname = "kubernetes.io/hostname" LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone" LabelMultiZoneDelimiter = "__" LabelZoneRegion = "failure-domain.beta.kubernetes.io/region" LabelInstanceType = "beta.kubernetes.io/instance-type" LabelOS = "beta.kubernetes.io/os" LabelArch = "beta.kubernetes.io/arch" // LabelNamespaceSuffixKubelet is an allowed label namespace suffix kubelets can self-set ([*.]kubelet.kubernetes.io/*) LabelNamespaceSuffixKubelet = "kubelet.kubernetes.io" // LabelNamespaceSuffixNode is an allowed label namespace suffix kubelets can self-set ([*.]node.kubernetes.io/*) LabelNamespaceSuffixNode = "node.kubernetes.io" // LabelNamespaceNodeRestriction is a forbidden label namespace that kubelets may not self-set when the NodeRestriction admission plugin is enabled LabelNamespaceNodeRestriction = "node-restriction.kubernetes.io" )
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" )
Variables ¶
var DefaultFailureDomains string = LabelHostname + "," + LabelZoneFailureDomain + "," + LabelZoneRegion
When the --failure-domains scheduler flag is not specified, DefaultFailureDomains defines the set of label keys used when TopologyKey is empty in PreferredDuringScheduling anti-affinity.
Functions ¶
func IsKubeletLabel ¶
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 ¶
- Version
- v1.13.5
- Published
- Mar 22, 2019
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 29 seconds ago –
Tools for package owners.