Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying a Kubernetes cluster to Digital Ocean?

It seems like get.k8s.io is the recommended way to deploy a Kubernetes cluster, but Digital Ocean isn't supported by this script.

Is there an alternate way to easily set up a cluster on Digital Ocean that I've missed?

Thanks

like image 469
user964375 Avatar asked Mar 29 '15 11:03

user964375


People also ask

Does Digital Ocean support Kubernetes?

DigitalOcean gives every Kubernetes user free bandwidth based on which nodes they use and how often they run, bandwidth pooling, and a low $0.01/GB overage cost. Transfers that are outgoing are considered for bandwidth billing—we won't charge internal transfers.

What is digital ocean cluster?

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.

How many ways can you make Kubernetes cluster?

When deciding how to create and deploy Kubernetes clusters quickly, three options to consider are a web interface, the command line, and terraform.


1 Answers

You can use kubicorn to create a fairly dope kubernetes cluster in Digital Ocean pretty easily. Here are the steps needed to do so:

// Install kubicorn
go get github.com/kris-nova/kubicorn

// Configure your auth
export DIGITALOCEAN_ACCESS_TOKEN=***************************************** 

// Create your kubernetes profile from the default profile
kubicorn create mycluster --profile do

// Tweak your cluster as you like
kubicorn edit mycluster

// Apply your profile
kubicorn apply mycluster -v 4

// Use kubectl to access your cluster
kubectl get no

Note that kubicorn is vendored to be a library as well as a command line tool, so you should probably be able to also include this logic in a program if you'd like.

Source: https://www.nivenly.com/kubernetes-on-digital-ocean-with-encrypted-vpn-service-mesh/

like image 168
Kris Nova Avatar answered Sep 30 '22 14:09

Kris Nova