Kubernetes - The kubernetes nodes were reporting in not ready state after restart of ubuntu worker nodes.
Today after restarting the worker nodes (ubuntu2 and ubuntu3) they were showing in not-ready state.
In order to solve the issue I ran the command:- sudo swapoff -a on the worker node - ubuntu2
After running the command, I checked the status of the nodes on the master node - ubuntu1
Please note that the node - ubuntu2 shows in ready state where as node - ubuntu3 is in not ready state.
Now I will run the command - sudo swapoff -a command on the worder node to disable the swap on it.
Now if we check the status of the nodes from the master node:- ubuntu1, both the nodes are in ready state.