remove kubernetes.io/hostname label copying

This commit is contained in:
James Munnelly 2025-03-20 20:12:02 +00:00
parent 934e247030
commit 01ae1b1b5a
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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