mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
remove kubernetes.io/hostname label copying
This commit is contained in:
parent
934e247030
commit
01ae1b1b5a
@ -970,8 +970,8 @@ const (
|
|||||||
// alpha: v1.33
|
// alpha: v1.33
|
||||||
//
|
//
|
||||||
// Enables the PodTopologyLabelsAdmission admission plugin that mutates `pod/binding`
|
// Enables the PodTopologyLabelsAdmission admission plugin that mutates `pod/binding`
|
||||||
// requests by copying the `topology.k8s.io/{zone,region}` and `kubernetes.io/hostname`
|
// requests by copying the `topology.k8s.io/{zone,region}` labels from the assigned
|
||||||
// labels from the assigned Node object (in the Binding being admitted) onto the Binding
|
// Node object (in the Binding being admitted) onto the Binding
|
||||||
// so that it can be persisted onto the Pod object when the Pod is being scheduled.
|
// so that it can be persisted onto the Pod object when the Pod is being scheduled.
|
||||||
// This allows workloads running in pods to understand the topology information of their assigned node.
|
// This allows workloads running in pods to understand the topology information of their assigned node.
|
||||||
// Enabling this feature also permits external schedulers to set labels on pods in an atomic
|
// Enabling this feature also permits external schedulers to set labels on pods in an atomic
|
||||||
|
@ -41,7 +41,7 @@ const PluginName = "PodTopologyLabels"
|
|||||||
// This configuration is used by kube-apiserver.
|
// This configuration is used by kube-apiserver.
|
||||||
// It is not exported to avoid any chance of accidentally mutating the variable.
|
// It is not exported to avoid any chance of accidentally mutating the variable.
|
||||||
var defaultConfig = Config{
|
var defaultConfig = Config{
|
||||||
Labels: []string{"topology.k8s.io/zone", "topology.k8s.io/region", "kubernetes.io/hostname"},
|
Labels: []string{"topology.k8s.io/zone", "topology.k8s.io/region"},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register registers a plugin
|
// Register registers a plugin
|
||||||
|
Loading…
Reference in New Issue
Block a user