特性开关

June 9, 2025 · View on GitHub

特性开关(Feature Gates)是 Kubernetes 中用来开启实验性功能的配置,可以通过选项 --feature-gates 来给不同的组件(如 kube-apiserver、kube-controller-manager、kube-scheduler、kubelet、kube-proxy等)开启功能特性。

FeatureDefaultStageSinceUntil
AcceleratorsfalseAlpha1.61.10
AdvancedAuditingfalseAlpha1.71.7
AdvancedAuditingtrueBeta1.81.11
AdvancedAuditingtrueGA1.12-
AffinityInAnnotationsfalseAlpha1.61.7
AllowExtTrafficLocalEndpointsfalseBeta1.41.6
AllowExtTrafficLocalEndpointstrueGA1.7-
APIListChunkingfalseAlpha1.81.8
APIListChunkingtrueBeta1.9
APIResponseCompressionfalseAlpha1.7
AppArmortrueBeta1.4
AttachVolumeLimitfalseAlpha1.11
BlockVolumefalseAlpha1.9
CPUManagerfalseAlpha1.81.9
CPUManagertrueBeta1.10
CRIContainerLogRotationfalseAlpha1.101.10
CRIContainerLogRotationtrueBeta1.11
CSIBlockVolumefalseAlpha1.111.11
CSIPersistentVolumefalseAlpha1.91.9
CSIPersistentVolumetrueBeta1.10
CustomPodDNSfalseAlpha1.91.9
CustomPodDNStrueBeta1.10
CustomResourceSubresourcesfalseAlpha1.10
CustomResourceValidationfalseAlpha1.81.8
CustomResourceValidationtrueBeta1.9
DebugContainersfalseAlpha1.10
DevicePluginsfalseAlpha1.81.9
DevicePluginstrueBeta1.10
DynamicKubeletConfigfalseAlpha1.41.10
DynamicKubeletConfigtrueBeta1.11
DynamicProvisioningSchedulingfalseAlpha1.111.11
DynamicVolumeProvisioningtrueAlpha1.31.7
DynamicVolumeProvisioningtrueGA1.8
EnableEquivalenceClassCachefalseAlpha1.8
ExpandInUsePersistentVolumesfalseAlpha1.11
ExpandPersistentVolumesfalseAlpha1.81.10
ExpandPersistentVolumestrueBeta1.11
ExperimentalCriticalPodAnnotationfalseAlpha1.5
ExperimentalHostUserNamespaceDefaultingfalseBeta1.5
GCERegionalPersistentDisktrueBeta1.10
HugePagesfalseAlpha1.81.9
HugePagestrueBeta1.10
HyperVContainerfalseAlpha1.10
ImageVolumefalseAlpha1.311.32
ImageVolumefalseBeta1.33
InitializersfalseAlpha1.7
KubeletConfigFilefalseAlpha1.81.9
KubeletPluginsWatcherfalseAlpha1.111.11
KubeletPluginsWatchertrueBeta1.12
LocalStorageCapacityIsolationfalseAlpha1.71.9
LocalStorageCapacityIsolationtrueBeta1.10
MountContainersfalseAlpha1.9
MountPropagationfalseAlpha1.81.9
MountPropagationtrueBeta1.101.11
MountPropagationtrueGA1.12
PersistentLocalVolumesfalseAlpha1.71.9
PersistentLocalVolumestrueBeta1.10
PodPriorityfalseAlpha1.8
PodReadinessGatesfalseAlpha1.11
PodReadinessGatestrueBeta1.12
PodShareProcessNamespacefalseAlpha1.10
PodShareProcessNamespacetrueBeta1.12
PVCProtectionfalseAlpha1.91.9
ReadOnlyAPIDataVolumestrueDeprecated1.10
ResourceLimitsPriorityFunctionfalseAlpha1.9
RotateKubeletClientCertificatetrueBeta1.7
RotateKubeletServerCertificatefalseAlpha1.7
RunAsGroupfalseAlpha1.10
RuntimeClassfalseAlpha1.12
SCTPSupportfalseAlpha1.12
ServiceNodeExclusionfalseAlpha1.8
StorageObjectInUseProtectiontrueBeta1.101.10
StorageObjectInUseProtectiontrueGA1.11
StreamingProxyRedirectstrueBeta1.5
SupportIPVSProxyModefalseAlpha1.81.8
SupportIPVSProxyModefalseBeta1.91.9
SupportIPVSProxyModetrueBeta1.101.10
SupportIPVSProxyModetrueGA1.11
SupportPodPidsLimitfalseAlpha1.10
SysctlstrueBeta1.11
TaintBasedEvictionsfalseAlpha1.6
TaintNodesByConditionfalseAlpha1.8
TaintNodesByConditiontrueBeta1.12
TokenRequestfalseAlpha1.101.11
TokenRequestTrueBeta1.12
TokenRequestProjectionfalseAlpha1.111.11
TokenRequestProjectionTrueBeta1.12
TTLAfterFinishedfalseAlpha1.12
VolumeSchedulingfalseAlpha1.91.9
VolumeSchedulingtrueBeta1.10
VolumeSubpathEnvExpansionfalseAlpha1.11
ScheduleDaemonSetPodstrueBeta1.12
MutableCSINodeAllocatableCountfalseAlpha1.33

参考文档