Use automatic Kubernetes token injection

Use the Kubernetes user token that is automatically injected into workspace containers to run kubectl and kubectl commands against the Kubernetes cluster without explicit login.

The automatic token injection currently works only on the OpenShift infrastructure.
Prerequisites
  • You have a running instance of Eclipse Che.

Procedure
  1. Open the Che dashboard and start a workspace.

  2. After the workspace starts, open a terminal in the workspace container.

  3. Run kubectl or kubectl commands to deploy applications, inspect and manage cluster resources, or view logs. The injected Kubernetes user token authenticates these commands automatically.

    Token Injection in IDE