summaryrefslogtreecommitdiff
path: root/vendor/k8s.io/api/core/v1/well_known_labels.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/k8s.io/api/core/v1/well_known_labels.go')
-rw-r--r--vendor/k8s.io/api/core/v1/well_known_labels.go32
1 files changed, 23 insertions, 9 deletions
diff --git a/vendor/k8s.io/api/core/v1/well_known_labels.go b/vendor/k8s.io/api/core/v1/well_known_labels.go
index a506f17f6..5cf82a981 100644
--- a/vendor/k8s.io/api/core/v1/well_known_labels.go
+++ b/vendor/k8s.io/api/core/v1/well_known_labels.go
@@ -19,16 +19,21 @@ package v1
const (
LabelHostname = "kubernetes.io/hostname"
- LabelFailureDomainBetaZone = "failure-domain.beta.kubernetes.io/zone"
- LabelFailureDomainBetaRegion = "failure-domain.beta.kubernetes.io/region"
- LabelTopologyZone = "topology.kubernetes.io/zone"
- LabelTopologyRegion = "topology.kubernetes.io/region"
+ LabelTopologyZone = "topology.kubernetes.io/zone"
+ LabelTopologyRegion = "topology.kubernetes.io/region"
- // Legacy names for compat.
- LabelZoneFailureDomain = LabelFailureDomainBetaZone // deprecated, remove after 1.20
- LabelZoneRegion = LabelFailureDomainBetaRegion // deprecated, remove after 1.20
- LabelZoneFailureDomainStable = LabelTopologyZone
- LabelZoneRegionStable = LabelTopologyRegion
+ // These label have been deprecated since 1.17, but will be supported for
+ // the foreseeable future, to accommodate things like long-lived PVs that
+ // use them. New users should prefer the "topology.kubernetes.io/*"
+ // equivalents.
+ LabelFailureDomainBetaZone = "failure-domain.beta.kubernetes.io/zone" // deprecated
+ LabelFailureDomainBetaRegion = "failure-domain.beta.kubernetes.io/region" // deprecated
+
+ // Retained for compat when vendored. Do not use these consts in new code.
+ LabelZoneFailureDomain = LabelFailureDomainBetaZone // deprecated
+ LabelZoneRegion = LabelFailureDomainBetaRegion // deprecated
+ LabelZoneFailureDomainStable = LabelTopologyZone // deprecated
+ LabelZoneRegionStable = LabelTopologyRegion // deprecated
LabelInstanceType = "beta.kubernetes.io/instance-type"
LabelInstanceTypeStable = "node.kubernetes.io/instance-type"
@@ -53,4 +58,13 @@ const (
// controllers and kube-proxy to check if the Endpoint objects should be replicated when
// using Headless Services
IsHeadlessService = "service.kubernetes.io/headless"
+
+ // LabelNodeExcludeBalancers specifies that the node should not be considered as a target
+ // for external load-balancers which use nodes as a second hop (e.g. many cloud LBs which only
+ // understand nodes). For services that use externalTrafficPolicy=Local, this may mean that
+ // any backends on excluded nodes are not reachable by those external load-balancers.
+ // Implementations of this exclusion may vary based on provider.
+ LabelNodeExcludeBalancers = "node.kubernetes.io/exclude-from-external-load-balancers"
+ // LabelMetadataName is the label name which, in-tree, is used to automatically label namespaces, so they can be selected easily by tools which require definitive labels
+ LabelMetadataName = "kubernetes.io/metadata.name"
)