Deploying Kubernetes Cluster in Digital Ocean?

Get.k8s.io seems to be the recommended way to deploy a Kubernetes cluster, but Digital Ocean is not supported by this script.

Is there an alternative way to easily set up a cluster in Digital Ocean that I missed?

thank

+4
source share
5 answers

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 --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 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/

+3

Kubeadm. Kubernet , Kubeadm.

, Kubeadm - Google Google. , -.

kubeadm | Kubernetes

+2

Ansible. , github repo https://github.com/kubernetes-incubator/kubespray/blob/master/contrib/inventory_builder/inventory.py

k8s, , multi- node, TLS, , :

1) .

Terraform script .

2) git clone https://github.com/kubernetes-incubator/kubespray/blob/master/contrib/inventory_builder/inventory.py

3) . /kubespray/inventory/inventory.cfg

4) , , - :

[etcd]
<master-ip>

[kube-master]
<master-ip>

[kube-node]
<node1-ip>
<node2-ip>
<node3-ip>

[k8s-cluster:children]
kube-node
kube-master

5) brew apt-get, .

brew install ansible

6)

ansible-playbook -u root -b -i inventory/inventory.cfg cluster.yml

Linux Distro, , , root.

youtube: https://www.youtube.com/watch?v=N9q51JgbWu8&t=339s

+2

Ocean Oceans . , , Kubernetes v1.0.3.

+1

All Articles