[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 swapSolution:
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
Add Comment