abaair davis
abaair davis

Reputation: 189

System hangs after running master cluster kubernetes

Whenever I try to run the Kubernetes cluster from the master’s machine using the below command, my system hangs and gets very slow and I even cant open explorer, or firefox. I have two VM with network configuration NAT and Host-only adapter.

 kubeadm init --apiserver-advertise-address=<ip-address-of-kmaster-vm> --pod-network-cidr=192.168.0.0/16

Any help is highly appreciated

Upvotes: 1

Views: 270

Answers (1)

PjoterS
PjoterS

Reputation: 14102

As was discussed in comments, the root cause of the issue was not enough resources available in this VirtualMachine.

In Kubeadm documentation, minimal requirements are:

To follow this guide, you need:

  • One or more machines running a deb/rpm-compatible Linux OS; for example: Ubuntu or CentOS.
  • 2 GiB or more of RAM per machine--any less leaves little room for your apps.
  • At least 2 CPUs on the machine that you use as a control-plane node.
  • Full network connectivity among all machines in the cluster. You can use either a public or a private network.

OP's VM had set RAM to 2GB which casued performance issue using different applications.

When RAM on the VM was set to 4GB, Virtual Machine is working perfectly fine.

Upvotes: 1

Related Questions