Class ClusterDrainPolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ClusterDrainPolicy.Builder,ClusterDrainPolicy>
Specifies how pods are evicted from an instance before it is patched with the DrainFirst strategy. By
default, evictions respect Kubernetes Pod Disruption Budgets.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterDrainPolicy.Builderbuilder()final IntegerThe maximum time, in seconds, to wait for the pods on an instance to drain.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ClusterOnDrainTimeoutThe action to take if the pods on an instance don't drain withinDrainTimeoutInSeconds.final StringThe action to take if the pods on an instance don't drain withinDrainTimeoutInSeconds.static Class<? extends ClusterDrainPolicy.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
drainTimeoutInSeconds
The maximum time, in seconds, to wait for the pods on an instance to drain. Valid values are from 0 to 5400 (90 minutes). The default is 3600 (1 hour).
- Returns:
- The maximum time, in seconds, to wait for the pods on an instance to drain. Valid values are from 0 to 5400 (90 minutes). The default is 3600 (1 hour).
-
onDrainTimeout
The action to take if the pods on an instance don't drain within
DrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
If the service returns an enum value that is not available in the current SDK version,
onDrainTimeoutwill returnClusterOnDrainTimeout.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromonDrainTimeoutAsString().- Returns:
- The action to take if the pods on an instance don't drain within
DrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
-
- See Also:
-
-
onDrainTimeoutAsString
The action to take if the pods on an instance don't drain within
DrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
If the service returns an enum value that is not available in the current SDK version,
onDrainTimeoutwill returnClusterOnDrainTimeout.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromonDrainTimeoutAsString().- Returns:
- The action to take if the pods on an instance don't drain within
DrainTimeoutInSeconds. The default isSkip.-
Skip: Doesn't patch the instance. The instance is uncordoned and remains on the previous AMI version. This can leave the instance group partially patched. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. -
Force: Deletes the remaining pods without respecting Pod Disruption Budgets, and then patches the instance.
-
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ClusterDrainPolicy.Builder,ClusterDrainPolicy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-