# doctl kubernetes cluster – DigitalOcean Documentation > The commands under `doctl kubernetes cluster` are for the management of Kubernetes 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. - [doctl kubernetes cluster create](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/create/index.html.md): Creates a Kubernetes cluster given the specified options and using the specified name. Before creating the cluster, you can use `doctl kubernetes options` to see possible values for the various configuration flags. If no configuration flags are used, a … - [doctl kubernetes cluster delete](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/delete/index.html.md): Deletes the specified Kubernetes clusters and the Droplets associated with them. To delete all other DigitalOcean resources created during the operation of the clusters, such as load balancers, volumes or volume snapshots, use the `--dangerous` flag. - [doctl kubernetes cluster delete-selective](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/delete-selective/index.html.md): Deletes the specified Kubernetes cluster and Droplets associated with it. It also deletes the specified associated resources. Associated resources can be load balancers, volumes and volume snapshots. - [doctl kubernetes cluster get](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/get/index.html.md): Retrieves the following details about a Kubernetes cluster: - A unique ID for the cluster - A human-readable name for the cluster - The slug identifying the region where the Kubernetes cluster is located - The slug identifying the cluster's Kubernetes … - [doctl kubernetes cluster get-upgrades](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/get-upgrades/index.html.md): Retrieves a list of slugs representing Kubernetes upgrade versions you can use to upgrade the cluster. To upgrade your cluster, use the `doctl kubernetes cluster upgrade` command. - [doctl kubernetes cluster list](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/list/index.html.md): Retrieves the following details about all Kubernetes clusters that are on your account: - A unique ID for the cluster - A human-readable name for the cluster - The slug identifying the region where the Kubernetes cluster is located - The slug identifying … - [doctl kubernetes cluster list-associated-resources](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/list-associated-resources/index.html.md): Retrieves the following details for a Kubernetes cluster: - Volume IDs for volumes created by the DigitalOcean CSI driver - Volume snapshot IDs for volume snapshots created by the DigitalOcean CSI driver - Load balancer IDs for load balancers managed by … - [doctl kubernetes cluster update](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/update/index.html.md): Updates the configuration values for a Kubernetes cluster. The cluster must be referred to by its name or ID. Use the `doctl kubernetes cluster list` command to get a list of clusters on your account. - [doctl kubernetes cluster upgrade](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/upgrade/index.html.md): Upgrades a Kubernetes cluster. By default, this upgrades the cluster to the latest available release, but you can also specify any version listed for your cluster by using `doctl k8s cluster get-upgrades`. ## doctl kubernetes cluster kubeconfig The commands under `doctl kubernetes cluster kubeconfig` are used to manage Kubernetes cluster credentials on your local machine. The credentials are used as authentication contexts with `kubectl`, the Kubernetes command-line interface. - [doctl kubernetes cluster kubeconfig remove](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/kubeconfig/remove/index.html.md): This command removes the specified cluster's credentials from your local kubeconfig. After running this command, you cannot use `kubectl` to interact with your cluster. - [doctl kubernetes cluster kubeconfig save](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/kubeconfig/save/index.html.md): Adds the credentials for the specified cluster to your local kubeconfig. After this, your kubectl installation can directly manage the specified cluster. - [doctl kubernetes cluster kubeconfig show](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/kubeconfig/show/index.html.md): Returns the raw YAML for the specified cluster's kubeconfig. ## doctl kubernetes cluster node-pool The commands under `node-pool` are for managing Kubernetes cluster's node pools. You can use these commands to create or delete node pools, enable autoscaling, and more. - [doctl kubernetes cluster node-pool create](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/create/index.html.md): Creates a new node pool for the specified cluster. The command requires values for the `--name`, `--size`, and `--count` flags to create a node pool. You can also specify that you'd like to enable autoscaling and set minimum and maximum node poll sizes. - [doctl kubernetes cluster node-pool delete](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/delete/index.html.md): Deletes a node pool in a cluster, which also removes all the nodes inside that pool. You cannot reverse this action. - [doctl kubernetes cluster node-pool delete-node](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/delete-node/index.html.md): Deletes a node in the specified node pool. By default, this deletion happens gracefully and Kubernetes drains the node of any pods before deleting it. - [doctl kubernetes cluster node-pool get](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/get/index.html.md): Retrieves information about the specified node pool in the specified cluster, including: - The node pool ID - The slug indicating the machine size of the nodes, such as `s-1vcpu-2gb` - The number of nodes in the pool - The tags applied to the node pool - … - [doctl kubernetes cluster node-pool list](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/list/index.html.md): Retrieves information about the specified cluster's node pools, including: - The node pool ID - The slug indicating the machine size of the nodes, such as `s-1vcpu-2gb` - The number of nodes in the pool - The tags applied to the node pool - The names of … - [doctl kubernetes cluster node-pool replace-node](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/replace-node/index.html.md): Deletes the specified node in the specified node pool, and then creates a new node in its place. This is useful if you suspect a node has entered an undesired state. By default, the deletion happens gracefully and Kubernetes drains the node of any pods … - [doctl kubernetes cluster node-pool update](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/update/index.html.md): Updates a node pool in a cluster. You can update any value for which there is a flag. ## doctl kubernetes cluster registry The commands under `registry` are for managing DOCR integration with Kubernetes clusters. You can use these commands to add or remove registry from one or more clusters. - [doctl kubernetes cluster registry add](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/registry/add/index.html.md): Adds container registry support to the specified Kubernetes cluster(s). - [doctl kubernetes cluster registry remove](https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/registry/remove/index.html.md): Removes container registry support from the specified Kubernetes cluster(s).