Skip to main content

KubernetesNodeDrain

Resource KubernetesNodeDrain in pulumi-portainer.
3 min read

Resource KubernetesNodeDrain in pulumi-portainer.

Pulumi type: portainer:index/kubernetesNodeDrain:KubernetesNodeDrain.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
deleteEmptyDirDatabooleannoWhether to evict pods that use an emptyDir volume, whose data is lost once the pod is deleted. Mirrors kubectl drain --delete-emptydir-data.
disableEvictionbooleannoWhether to delete pods directly instead of going through the eviction API, which ignores any configured PodDisruptionBudget. Mirrors kubectl drain --disable-eviction.
environmentIdnumberyesIdentifier of the Portainer Kubernetes environment the node belongs to.
forcebooleannoWhether to allow deletion of standalone pods that are not managed by a controller. Such pods are lost for good, so the drain refuses them unless this is enabled. Mirrors kubectl drain --force.
gracePeriodSecondsnumbernoTermination grace period in seconds to apply to every evicted pod. -1 keeps each pod's own grace period. Mirrors kubectl drain --grace-period.
ignoreDaemonSetsbooleannoWhether to skip DaemonSet-managed pods, which would otherwise block the drain because their controller recreates them immediately. Mirrors kubectl drain --ignore-daemonsets.
kubernetesNodeDrainIdstringno
nodeNamestringyesName of the Kubernetes node to drain.
timeoutSecondsnumbernoOverall time in seconds to wait for the drain to complete. Mirrors kubectl drain --timeout.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
deleteEmptyDirDatabooleannoWhether to evict pods that use an emptyDir volume, whose data is lost once the pod is deleted. Mirrors kubectl drain --delete-emptydir-data.
disableEvictionbooleannoWhether to delete pods directly instead of going through the eviction API, which ignores any configured PodDisruptionBudget. Mirrors kubectl drain --disable-eviction.
environmentIdnumbernoIdentifier of the Portainer Kubernetes environment the node belongs to.
forcebooleannoWhether to allow deletion of standalone pods that are not managed by a controller. Such pods are lost for good, so the drain refuses them unless this is enabled. Mirrors kubectl drain --force.
gracePeriodSecondsnumbernoTermination grace period in seconds to apply to every evicted pod. -1 keeps each pod's own grace period. Mirrors kubectl drain --grace-period.
ignoreDaemonSetsbooleannoWhether to skip DaemonSet-managed pods, which would otherwise block the drain because their controller recreates them immediately. Mirrors kubectl drain --ignore-daemonsets.
kubernetesNodeDrainIdstringno
nodeNamestringnoName of the Kubernetes node to drain.
timeoutSecondsnumbernoOverall time in seconds to wait for the drain to complete. Mirrors kubectl drain --timeout.