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
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.
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.
When deciding how to create and deploy Kubernetes clusters quickly, three options to consider are a web interface, the command line, and terraform.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With