Parallel Works

pw kube token

pw kube token

Token to authenticate with the Kubernetes API

Synopsis

The pw kube token command prints a short-lived Kubernetes API token for a cluster, wrapped in the ExecCredential JSON that kubectl exec plugins expect.

pw kube auth installs this command as the exec plugin in your kubeconfig, so kubectl runs it for you; you rarely need to run it directly.

pw kube token <cluster> [flags]

Examples

  pw kube token demo

Options

  -h, --help   help for token

Options inherited from parent commands

      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
  -v, --verbose                Enable verbose logging

SEE ALSO