Kubernetes How-Tos

Generated on 5 May 2025

DigitalOcean Kubernetes (DOKS) is a Kubernetes service with a fully managed control plane, high availability, and autoscaling. DOKS integrates with standard Kubernetes toolchains and DigitalOcean’s load balancers, volumes, CPU and GPU Droplets, API, and CLI.

Getting Started

How to Create Kubernetes Clusters

Create a DigitalOcean Kubernetes cluster with CPU and GPU nodes to start running containerized applications in the cloud.

How to Connect to a DigitalOcean Kubernetes Cluster

Connect to a Kubernetes cluster with kubectl, the official Kubernetes command-line tool.

How to Add Node Pools to a Cluster

Create additional node pools for an existing cluster

How to Manage Kubernetes 1-Click Applications

Install 1-Click Applications on DigitalOcean Kubernetes clusters.

How to Destroy DigitalOcean Kubernetes Clusters

Destroy a DigitalOcean Kubernetes cluster to permanently and irreversibly remove it from an account.

How to Enable High Availability

Enable high availability to ensure 99.95% SLA uptime.

Enable Push-to-Deploy

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

How to Forward Logs to Managed OpenSearch Database

Enable log forwarding to Managed OpenSearch in DigitalOcean Kubernetes.

How to Add a Control Plane Firewall

Add a firewall to the cluster’s control plane for improved security and traffic.

Autoscaling

How to Enable Cluster Autoscaler for a DigitalOcean Kubernetes Cluster

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.

Autoscale Cluster With Horizontal Pod Autoscaling

Autoscale a DigitalOcean Kubernetes cluster using cluster autoscaling (CA) and horizontal pod autoscaling (HPA).

Data Storage

How to Integrate with a DigitalOcean Container Registry

Integrate a container registry with your Kubernetes cluster.

How to Add Volumes to Kubernetes Clusters

Create a PersistentVolumeClaim (PVC) to use DigitalOcean Volumes Block Storage for persistent data in Kubernetes clusters.

How to Delete Volumes from Kubernetes Clusters

Delete a volume from a Kubernetes cluster using kubectl to permanently and irreversibly remove it from the cluster and DigitalOcean account.

How to Restore Volumes from Snapshots in Kubernetes Clusters

Import a volume into DigitalOcean from an existing snapshot of data.

How to Create Volume Snapshots 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.

How to Import a DigitalOcean Snapshot into a Kubernetes Cluster

Import an existing DigitalOcean snapshot into a cluster.

How to Use the Database Operator

Use the database operator to automatically integrate new databases to your Kubernetes cluster.

How to Use Spaces With Kubernetes Clusters

Use Spaces object storage with Kubernetes clusters.

Load Balancing

How to Add Load Balancers to Kubernetes Clusters

Declare a DigitalOcean Load Balancer in the cluster manifest to distribute traffic across all worker nodes in the cluster.

How to Configure Advanced Load Balancer Settings in Kubernetes Clusters

Configure advanced load balancer settings for sticky sessions, health checks, and always-on SSL.

How to Migrate Load Balancers

Pass load balancer ownership from one service to another.

How to Delete Load Balancers from Kubernetes Clusters

Delete a load balancer from a Kubernetes cluster using kubectl to permanently and irreversibly remove it from the cluster and DigitalOcean account.

Cluster Management

How to Use the Routing Agent in Kubernetes Clusters

Manage IP routes on Kubernetes worker nodes using the routing agent

How to Customize CoreDNS for Kubernetes Clusters

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

How to Upgrade DOKS Clusters to Newer Versions

Upgrade clusters to newer patch versions or newer minor versions using the control panel or command-line interface.

How to Set RoleBindings for Custom Roles

Fine-tune access to Kubernetes clusters using custom team roles.

Monitoring

View Basic Metrics

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.

Use Cilium Hubble

How to access Cilium Hubble and Hubble UI

Set Up Advanced Monitoring

Install the sidecar agent for detailed metric visualizations on Kubernetes objects, like deployment progress for pods, DaemonSets, and StatefulSets.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.