API-initiated eviction is the process by which you use the Eviction API to create an Eviction
object that triggers graceful pod termination.
You can request eviction by directly calling the Eviction API using a client of the kube-apiserver, like the kubectl drain
command. This creates an Eviction
object, which causes the API server to terminate the Pod.
API-initiated evictions respect your configured PodDisruptionBudgets
and terminationGracePeriodSeconds
.
© 2022 The Kubernetes Authors
Documentation Distributed under CC BY 4.0.
https://kubernetes.io/docs/concepts/scheduling-eviction/api-eviction/