Install Kubernetes on VPS server Install Kubernetes on VPS server kubernetes kubernetes

Install Kubernetes on VPS server


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 first 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.


Here what i fill which you can do -

I would recommend going through the following guide which covers all the steps which i used for setting up kubernetes cluster using kubespray -

https://jhooq.com/kubespray-12-steps-for-installing-a-production-ready-kubernetes-cluster/

The above guide uses the vagrant files for defining the IP addresses and host name, so i guess you could update the vagrant file according to your need and increase the VPS.