Class EvictionResponder
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.EvictionResponder
-
- All Implemented Interfaces:
Editable<EvictionResponderBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class EvictionResponder extends Object implements Editable<EvictionResponderBuilder>, KubernetesResource
EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EvictionResponder()No args constructor for use in serializationEvictionResponder(String name, Integer priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvictionResponderBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()name allows you to identify the responder responding to the Eviction.IntegergetPriority()priority for this responder.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name allows you to identify the responder responding to the Eviction.voidsetPriority(Integer priority)priority for this responder.EvictionResponderBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
name allows you to identify the responder responding to the Eviction.It must be a valid domain-prefixed key (such as "acme.io/foo"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.
-
setName
public void setName(String name)
name allows you to identify the responder responding to the Eviction.It must be a valid domain-prefixed key (such as "acme.io/foo"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.
-
getPriority
public Integer getPriority()
priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.
The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.
-
setPriority
public void setPriority(Integer priority)
priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.
The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.
-
edit
public EvictionResponderBuilder edit()
- Specified by:
editin interfaceEditable<EvictionResponderBuilder>
-
toBuilder
public EvictionResponderBuilder toBuilder()
-
-