Kubernetes How-Tos

DigitalOcean Kubernetes (DOKS) is a managed Kubernetes service that lets you deploy Kubernetes clusters without the complexities of handling the control plane and containerized infrastructure. Clusters are compatible with standard Kubernetes toolchains and integrate natively with DigitalOcean Load Balancers and block storage volumes.

Getting Started

Create a DigitalOcean Kubernetes cluster in the control panel to start running containerized applications in the cloud.
Connect to a Kubernetes cluster with kubectl, the official Kubernetes command-line tool.
Monitor metrics like CPU usage, load averages, and bandwidth to support capacity planning and provide insight into cluster health. View visualizations on resource utilization for individual nodes, node pools, or clusters.
Enable autoscaling to automatically adjust the number of nodes in a cluster based on the cluster’s capacity to schedule pods. Combine with a Horizontal Pod Autoscaler (HPA) to make clusters highly responsive to resource demands.
Destroy a DigitalOcean Kubernetes cluster to permanently and irreversibly remove it from an account.

Data Storage

Create a PersistentVolumeClaim (PVC) to use DigitalOcean block storage volumes for persistent data in Kubernetes clusters.
Create volume snapshots to save the contents of the volume’s disk, then use the snapshot to restore or create new volumes with the same contents.
Delete a block storage volume from a Kubernetes cluster using kubectl to permanently and irreversibly remove it the cluster and DigitalOcean account.

Load Balancing

Declare a DigitalOcean Load Balancer in the cluster manifest to distribute traffic across all worker nodes in the cluster.
Configure advanced load balancer settings for balancing algorithms, sticky sessions, health checks, and always-on SSL.
Pass load balancer ownership from one service to another.
Delete a load balancer from a Kubernetes cluster using kubectl to permanently and irreversibly remove it the cluster and DigitalOcean account.

CoreDNS Customization

Customize CoreDNS settings to change system configuration and provide specific options for domains.


Use GitHub Actions to trigger a workflow to deploy a new image to your Kubernetes cluster.

Cluster Health

Install the sidecar agent for detailed metric visualizations on Kubernetes objects, like deployment progress for pods, DaemonSets, and StatefulSets.
Upgrade clusters to newer patch versions or newer minor versions using the control panel or command-line interface.