Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
CLICommands

orl kubernetes token

Print a cluster token as a kubectl ExecCredential, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl kubernetes token --cluster <cluster>

Print a token only the cluster accepts, as the client.authentication.k8s.io/v1 ExecCredential a kubectl exec credential plugin prints. The token carries view unless --role asks for cluster-admin.

kubectl runs this command for you through the kubeconfig entry orl kubernetes update-kubeconfig adds, so you rarely run it yourself. The token is kept in the config dir, readable only by you, and reused until five minutes before it expires; orl auth logout removes kept tokens.

Flags

FlagTypeRequired
--clusterstringyescluster id (orl kubernetes cluster list prints them)
--roleview, cluster-adminnocredential role: view (the default) or cluster-admin

This wraps the createKubernetesClusterToken API operation.

On this page