well_known_labels.go 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. Copyright 2015 The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package api
  14. import (
  15. api "k8s.io/kubernetes/pkg/apis/core"
  16. )
  17. const (
  18. // TaintNodeNotReady will be added when node is not ready
  19. // and feature-gate for TaintBasedEvictions flag is enabled,
  20. // and removed when node becomes ready.
  21. TaintNodeNotReady = "node.kubernetes.io/not-ready"
  22. // TaintNodeUnreachable will be added when node becomes unreachable
  23. // (corresponding to NodeReady status ConditionUnknown)
  24. // and feature-gate for TaintBasedEvictions flag is enabled,
  25. // and removed when node becomes reachable (NodeReady status ConditionTrue).
  26. TaintNodeUnreachable = "node.kubernetes.io/unreachable"
  27. // TaintNodeUnschedulable will be added when node becomes unschedulable
  28. // and feature-gate for TaintNodesByCondition flag is enabled,
  29. // and removed when node becomes scheduable.
  30. TaintNodeUnschedulable = "node.kubernetes.io/unschedulable"
  31. // TaintNodeMemoryPressure will be added when node has memory pressure
  32. // and feature-gate for TaintNodesByCondition flag is enabled,
  33. // and removed when node has enough memory.
  34. TaintNodeMemoryPressure = "node.kubernetes.io/memory-pressure"
  35. // TaintNodeDiskPressure will be added when node has disk pressure
  36. // and feature-gate for TaintNodesByCondition flag is enabled,
  37. // and removed when node has enough disk.
  38. TaintNodeDiskPressure = "node.kubernetes.io/disk-pressure"
  39. // TaintNodeNetworkUnavailable will be added when node's network is unavailable
  40. // and feature-gate for TaintNodesByCondition flag is enabled,
  41. // and removed when network becomes ready.
  42. TaintNodeNetworkUnavailable = "node.kubernetes.io/network-unavailable"
  43. // TaintNodePIDPressure will be added when node has pid pressure
  44. // and feature-gate for TaintNodesByCondition flag is enabled,
  45. // and removed when node has enough disk.
  46. TaintNodePIDPressure = "node.kubernetes.io/pid-pressure"
  47. // TaintExternalCloudProvider sets this taint on a node to mark it as unusable,
  48. // when kubelet is started with the "external" cloud provider, until a controller
  49. // from the cloud-controller-manager intitializes this node, and then removes
  50. // the taint
  51. TaintExternalCloudProvider = "node.cloudprovider.kubernetes.io/uninitialized"
  52. // TaintNodeShutdown when node is shutdown in external cloud provider
  53. TaintNodeShutdown = "node.cloudprovider.kubernetes.io/shutdown"
  54. // NodeFieldSelectorKeyNodeName ('metadata.name') uses this as node field selector key
  55. // when selecting node by node's name.
  56. NodeFieldSelectorKeyNodeName = api.ObjectNameField
  57. )