php-k8s
php-k8s copied to clipboard
Support the Eviction api
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