Skip to main content

Switch to another context of the kubeconfig

POST 

/kube/context

The owner's alone, and only with a kubeconfig: a backend running in its cluster answers 409 IN_CLUSTER. A context on the same cluster only changes the credentials. One on another cluster is that cluster's KubeNDT: it takes its owner's password (PASSWORD_REQUIRED, INVALID_CREDENTIALS, 429 under the login's limits), waits for no running operation (OPERATION_RUNNING) and no open shell, logs, capture, trace or throughput socket on this backend (STREAMS_OPEN), then takes that cluster's accounts, tokens, sessions and settings and signs the owner in there with a new session cookie. Where KubeNDT never ran, the owner's own password is checked and carried over. The kubeconfig is never written, so a restart comes back to the configured context.

Request​

Responses​

OK