package apis

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

Index

Constants

const (
	// HypervIsolationAnnotationKey is used to run windows containers with hyperv isolation.
	// Refer https://aka.ms/hyperv-container.
	HypervIsolationAnnotationKey = "experimental.windows.kubernetes.io/isolation-type"
	// HypervIsolationValue is used to run windows containers with hyperv isolation.
	// Refer https://aka.ms/hyperv-container.
	HypervIsolationValue = "hyperv"
)
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 GA labels and stop applying the beta OS labels in Kubernetes 1.19.
	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 GA labels and stop applying the beta Arch labels in Kubernetes 1.19.
	LabelArch = "beta.kubernetes.io/arch"
)

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

func ShouldIsolatedByHyperV

func ShouldIsolatedByHyperV(annotations map[string]string) bool

ShouldIsolatedByHyperV returns true if a windows container should be run with hyperv isolation.

Source Files

well_known_annotations_windows.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/v1alpha1
pkg/kubelet/apis/config/v1beta1
pkg/kubelet/apis/config/validation
pkg/kubelet/apis/podresources
Version
v1.20.7
Published
May 12, 2021
Platform
windows/amd64
Imports
6 packages
Last checked
35 seconds ago

Tools for package owners.