Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame^] | 1 | /* |
| 2 | Copyright 2019 The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package v1 |
| 18 | |
| 19 | const ( |
| 20 | LabelHostname = "kubernetes.io/hostname" |
| 21 | |
| 22 | LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone" |
| 23 | LabelZoneRegion = "failure-domain.beta.kubernetes.io/region" |
| 24 | LabelZoneFailureDomainStable = "topology.kubernetes.io/zone" |
| 25 | LabelZoneRegionStable = "topology.kubernetes.io/region" |
| 26 | |
| 27 | LabelInstanceType = "beta.kubernetes.io/instance-type" |
| 28 | LabelInstanceTypeStable = "node.kubernetes.io/instance-type" |
| 29 | |
| 30 | LabelOSStable = "kubernetes.io/os" |
| 31 | LabelArchStable = "kubernetes.io/arch" |
| 32 | |
| 33 | // LabelWindowsBuild is used on Windows nodes to specify the Windows build number starting with v1.17.0. |
| 34 | // It's in the format MajorVersion.MinorVersion.BuildNumber (for ex: 10.0.17763) |
| 35 | LabelWindowsBuild = "node.kubernetes.io/windows-build" |
| 36 | |
| 37 | // LabelNamespaceSuffixKubelet is an allowed label namespace suffix kubelets can self-set ([*.]kubelet.kubernetes.io/*) |
| 38 | LabelNamespaceSuffixKubelet = "kubelet.kubernetes.io" |
| 39 | // LabelNamespaceSuffixNode is an allowed label namespace suffix kubelets can self-set ([*.]node.kubernetes.io/*) |
| 40 | LabelNamespaceSuffixNode = "node.kubernetes.io" |
| 41 | |
| 42 | // LabelNamespaceNodeRestriction is a forbidden label namespace that kubelets may not self-set when the NodeRestriction admission plugin is enabled |
| 43 | LabelNamespaceNodeRestriction = "node-restriction.kubernetes.io" |
| 44 | |
| 45 | // IsHeadlessService is added by Controller to an Endpoint denoting if its parent |
| 46 | // Service is Headless. The existence of this label can be used further by other |
| 47 | // controllers and kube-proxy to check if the Endpoint objects should be replicated when |
| 48 | // using Headless Services |
| 49 | IsHeadlessService = "service.kubernetes.io/headless" |
| 50 | ) |