doctl kubernetes

Go to Navigation


doctl kubernetes [flags]


kube, k8s, k


The commands under doctl kubernetes are for managing Kubernetes clusters and viewing configuration options relating to clusters.

A typical workflow is to use doctl kubernetes cluster create to create the cluster on DigitalOcean’s infrastructure, then call doctl kubernetes cluster kubeconfig to configure kubectl to connect to the cluster. You are then able to use kubectl to create and manage workloads.

The commands under doctl kubernetes options retrieve values used while creating clusters, such as the list of regions where cluster creation is supported.


--help, -hHelp for this command
doctldoctl is a command line interface (CLI) for the DigitalOcean API.
doctl kubernetes 1-clickDisplay commands that pertain to kubernetes 1-click applications
doctl kubernetes clusterDisplay commands for managing Kubernetes clusters
doctl kubernetes optionsList possible option values for use inside Kubernetes commands

Global Flags

--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false