error failed to run Kubelet Running with swap on is not supported please disable swap or set --fail-swap-on flag to

0 votes

Hi Guys,

I have set all the requirements to configure Kubernetes Cluster. But when I am running the kubeadm init command it is showing me the below error.

error: failed to run Kubelet: Running with swap on is not supported, please disable swap! or set --fail-swap-on flag to
Sep 16, 2020 in Kubernetes by akhtar
• 38,260 points
5,638 views

1 answer to this question.

0 votes

Hi@akhtar,

To configure Kubernetes Cluster you need to disable your swap in your system. Kubernetes will not allow swap service. So before running the init command in your master node, make sure swap is disabled. Otherwise, you can use the below command to disable swap.

$ sudo swapoff -a
answered Sep 16, 2020 by MD
• 95,460 points

Related Questions In Kubernetes

0 votes
1 answer
+1 vote
1 answer
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,474 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,396 views
0 votes
1 answer

Error getting primary cp: could not find master node, minikube is exiting due to an error

Hi@akhtar, You may receive this error when you ...READ MORE

answered May 19, 2020 in Kubernetes by MD
• 95,460 points
1,002 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP