php-k8s icon indicating copy to clipboard operation
php-k8s copied to clipboard

Support the Eviction api

Open svenwiltink opened this issue 5 months ago • 0 comments

When draining a node it is useful to evict the pods on a node 1 by 1 using api initiated evictions. This is useful because those requests respect the pod disruption budgets. The api is a little funky because it talks to the /api/v1/namespaces/<namespace>/pods/<pod>/eviction endpoint while the resource is policy/v1.

I am working on an implementation in my fork: https://github.com/renoki-co/php-k8s/pull/454

svenwiltink avatar May 15 '25 15:05 svenwiltink