kubernetes
Drain a Kubernetes node
Changed onDrain a Kubernetes node by safely evicting all pods from the node, preparing it for maintenance or removal Access policy: authenticated
post/kubernetes/{id}/nodes/{name}/drain
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/kubernetes/{id}/nodes/{name}/drain
- AuthAPI key in header X-API-KEY and API key in header Authorization
Path parameters
idinteger required
Environment(Endpoint) identifier
namestring required
Name of the node to drain
Request body
Example request
{
"DeleteEmptyDirData": true,
"GracePeriodSeconds": -1,
"IgnoreDaemonSets": true,
"TimeoutSeconds": 60
}Response
Success
Changes
- info
added optional request body
- info