mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +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
|
||||
//
|
||||
// Enables the PodTopologyLabelsAdmission admission plugin that mutates `pod/binding`
|
||||
// requests by copying the `topology.k8s.io/{zone,region}` and `kubernetes.io/hostname`
|
||||
// labels from the assigned Node object (in the Binding being admitted) onto the Binding
|
||||
// requests by copying the `topology.k8s.io/{zone,region}` labels from the assigned
|
||||
// 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.
|
||||
// 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
|
||||
|
@ -41,7 +41,7 @@ const PluginName = "PodTopologyLabels"
|
||||
// This configuration is used by kube-apiserver.
|
||||
// It is not exported to avoid any chance of accidentally mutating the variable.
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user