You can use it kubicornto create a fairly convenient cluster of tunnels in Digital Ocean quite easily. Here are the steps required for this:
// 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
// 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 it is kubicornused as a library as well as a command line tool, so you can probably also include this logic in the program if you want.
: https://www.nivenly.com/kubernetes-on-digital-ocean-with-encrypted-vpn-service-mesh/