Docker Technical Articles

[ERROR Swap]: running with swap on is not supported. Please disable swap

[ERROR Swap]: running with swap on is not supported. Please disable swap

Describe:

While deploying Kubernetes facing this issue as,

[ERROR Swap]: running with swap on is not supported. Please disable swap

Solution:

There are 2 ways to overcome this issue,

Procedure 1:

– Disable swap from local using  swapoff -a command and rerun the previous command.

kubeadm init –pod-network-cidr
– Usually this error occur at step ,kubeadm init –pod-network-cidr

Procedure 2:

– ignore the preflight  for swap to run kubeadm init, kubeadm init –ignore-preflight-errors Swap

– This will bypass and move forward your deployment.

Tags: mytecharticle,k8s, kubeadm, kubernetes, swapoff , technews

About the author

admin

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.