Viewing Che workspace logs in Kubernetes CLI

You can use the Kubernetes CLI to observe the Che workspace logs.

Prerequisites
  • The Che workspace <workspace_name> is running.

  • Your Kubernetes CLI session has access to the Kubernetes namespace <namespace_name> containing this workspace.

Procedure
  • Get the logs from the pod running the <workspace_name> workspace in the <namespace_name> namespace:

    $ kubectl logs --follow --namespace='<workspace_namespace>' \
      --selector='controller.devfile.io/devworkspace_name=<workspace_name>'