blob: e1a8f6291baf2cc2621b71657d96c357adf1723a [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
2Copyright 2019 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package v1
18
19const (
20 // TaintNodeNotReady will be added when node is not ready
21 // and removed when node becomes ready.
22 TaintNodeNotReady = "node.kubernetes.io/not-ready"
23
24 // TaintNodeUnreachable will be added when node becomes unreachable
25 // (corresponding to NodeReady status ConditionUnknown)
26 // and removed when node becomes reachable (NodeReady status ConditionTrue).
27 TaintNodeUnreachable = "node.kubernetes.io/unreachable"
28
29 // TaintNodeUnschedulable will be added when node becomes unschedulable
30 // and removed when node becomes scheduable.
31 TaintNodeUnschedulable = "node.kubernetes.io/unschedulable"
32
33 // TaintNodeMemoryPressure will be added when node has memory pressure
34 // and removed when node has enough memory.
35 TaintNodeMemoryPressure = "node.kubernetes.io/memory-pressure"
36
37 // TaintNodeDiskPressure will be added when node has disk pressure
38 // and removed when node has enough disk.
39 TaintNodeDiskPressure = "node.kubernetes.io/disk-pressure"
40
41 // TaintNodeNetworkUnavailable will be added when node's network is unavailable
42 // and removed when network becomes ready.
43 TaintNodeNetworkUnavailable = "node.kubernetes.io/network-unavailable"
44
45 // TaintNodePIDPressure will be added when node has pid pressure
46 // and removed when node has enough disk.
47 TaintNodePIDPressure = "node.kubernetes.io/pid-pressure"
48)