CH·02CLI reference

gpu clusters kubeconfig

Print a kubeconfig for the cluster

Print a kubeconfig for the cluster

Synopsis

Prints a kubeconfig whose server is the cluster's Kubernetes API through GPU.ai and whose token is the API key this CLI uses. Keep it private. kubectl exec and attach are not available.

gpu clusters kubeconfig ID_OR_NAME

Examples

gpu clusters kubeconfig train > kubeconfig.yaml
KUBECONFIG=kubeconfig.yaml kubectl get nodes

Options

  -h, --help   help for kubeconfig

Options inherited from parent commands

      --api-base string   API base URL (override with GPUAI_API_BASE env) (default "https://api.gpu.ai/v1")
      --debug             Enable debug logging to stderr
  -o, --output string     Output format: table|json (default table on TTY, json otherwise)

SEE ALSO

  • gpu clusters - GPU clusters: machines joined as one Kubernetes cluster with Ray

← The gpu CLI