...

Source file src/k8s.io/api/core/v1/well_known_taints.go

Documentation: k8s.io/api/core/v1

     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  	// 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 schedulable.
    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 pid.
    47  	TaintNodePIDPressure = "node.kubernetes.io/pid-pressure"
    48  
    49  	// TaintNodeOutOfService can be added when node is out of service in case of
    50  	// a non-graceful shutdown
    51  	TaintNodeOutOfService = "node.kubernetes.io/out-of-service"
    52  )
    53  

View as plain text