How to restart kubernetes nodes?

前端 未结 6 1891
予麋鹿
予麋鹿 2020-12-24 00:53

The status of nodes is reported as unknown

\"conditions\": [
          {
            \"type\": \"Ready\",
            \"status\": \"Unknown\",
          


        
6条回答
  •  梦毁少年i
    2020-12-24 01:35

    I had an onpremises HA installation, a master and a worker stopped working returning a NOTReady status. Checking the kubelet logs on the nodes I found out this problem:

    failed to run Kubelet: Running with swap on is not supported, please disable swap! or set --fail-swap-on flag to false
    

    Disabling swap on nodes with

    swapoff -a
    

    and restarting the kubelet

    systemctl restart kubelet
    

    did the work.

提交回复
热议问题