Skip to main content
POST
Scale workers

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Headers

X-Ankra-CSRF
string
required

Must match the ankra_csrf browser cookie.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
worker_count
integer
required
force_drain
boolean
default:false

Scale-down only. Remove the workers this request takes away without honouring PodDisruptionBudgets: each is drained the way a cluster teardown drains it and removed even when its drain is refused or its node cannot be reached. Off by default: a scale-down drains the removed workers one at a time through their budgets and keeps a worker whose drain is refused.

Response

Successful response

new_count
integer
required
previous_count
integer
required