Validated on 17 May 2019 • Posted on 27 September 2018
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.
Create Clusters
To create a Kubernetes cluster:
From the Create menu in the control panel, click Kubernetes.
Select a Kubernetes version. The latest version is selected by default and is the best choice if you have no specific need for an earlier version.
Locate the app you'd like to install to your Kubernetes cluster.
Click the Install App button on the upper right.
Select whether to install the app on a new or existing cluster
Once installation is complete, follow the directions on the Marketplace for the specific app.
Use the Kubernetes Dashboard for Your Cluster
The Kubernetes Dashboard provides a web-based user interface where you can deploy containerized applications, troubleshoot your application, manage your cluster resources (such as Deployments, Jobs, DaemonSets, etc), get an overview of applications running on your cluster, initiate a rolling update, restart a pod, and more.
Click the Kubernetes Dashboard button on the top-right.
Perform any desired action in the UI. For example, click + on the upper-right area of any page in the dashboard to deploy a containerized application using a web form.
You can create additional node pools and add and remove nodes from a node pool at any time.
To edit the size of an existing node pool:
Open the cluster's More menu and select View Nodes.
Next to the node pool which you'd like to resize, click the … button, then click Resize.
Use the + and - controls to adjust the size of the pool, then click the Update Node Count to confirm.
To add additional node pools:
Open the cluster's More menu and select View Nodes.
Click Add Node Pool.
Select the name, type, size, and number of Droplets in the pool. Click Add Node Pool to add additional node pools.
Click Save to save your changes and provision your new nodes.
Recycle Nodes
If a worker node isn't functioning properly, you can destroy and replace it with a new node of the same type with the Recycle option.
Open the cluster's More menu and select View Nodes.
Click the name of the node pool with the problem node.
Open the … menu next to the problem node and click Recycle, then confirm the action.
Recycling a worker node replaces the underlying Droplet with a newly provisioned one. Attached block storage volumes will be detached and reattached to the new Droplet, but any data stored locally on the original Droplet's disk will be lost.
Destroy Clusters
To delete an entire cluster:
Open the cluster's More menu and select Destroy.
Click Destroy.
Enter the name of the cluster, then click Destroy to confirm.
Destroying a cluster does not delete DigitalOcean Load Balancers or block storage volumes associated with the cluster.