Bidyut
Bidyut

Reputation: 993

Can we configure same node as master and slave in Kubernetes

I am having two linux machines where I am learning Kubernetes. Since resources are limited, I want to configure the same node as master and slave, so the configuration looks like

192.168.48.48 (master and slave) 191.168.48.49 (slave)

How to perform this setup. Any help will be appreciated.

Upvotes: 1

Views: 2801

Answers (1)

mohan08p
mohan08p

Reputation: 5362

Yes, you can use minikube the Minikube install for single node cluster. Use kubeadm to install Kubernetes where 1 node is master and another one as Node. Here is the doc, but, make sure you satisfy the prerequisites for the nodes and small house-keeping needs to done as shown in the official document. Then you could install and create two machine cluster for testing purpose if you have two linux machines as you shown two different IP's.

Hope this helps.

Upvotes: 2

Related Questions