Install Kubernetes on VPS server

11/18/2019

I am planning to setup a kubernetes cluster, that looks as follows: enter image description here

As you can see on the image, the cluster will consist of 3 Ubuntu 18.04 Virtual Private Server, one is the master and the other two servers are nodes. For the kubernetes installation, I am going to choose kubespray. First, I have to care about, that the 3 VPS can communicate with each other. That is the first question, what do I have to do, that the 3 VPS server can communicate to each other?

The second question is, how and where do I have to install kubespray? I would guess on the master server.

-- zero_coding
kubernetes
kubespray
server
ubuntu

1 Answer

11/18/2019

I would start with understanding how the setup of Kubernetes cluster for your use case looks like. There is a useful guide about this. Showing the dependencies, installing components, deploying a pod network step by step.

Answering your fisrt question: When you initialize your master with kubeadm init you can join your nodes to it (kubeadm join). After that you need to install and configure a pod network. Flannel is one of the most used network plugins for Kubernetes.

For your second question: There is a guide from the official Kubernetes documentation about this. Prerequisites should be met on all the servers in order to make Kubespray work. Here is the official GitHub link. However the installation steps there are minimal os I suggest supplementing with this and this.

Please let me know if that helped.

-- OhHiMark
Source: StackOverflow