{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64776","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64776/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64776/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64776/events","html_url":"https://github.com/kubernetes/kubernetes/issues/64776","id":329524382,"node_id":"MDU6SXNzdWUzMjk1MjQzODI=","number":64776,"title":"Kubelet does not start on Linux Kernel without SWAP Support","user":{"login":"Deccoy","id":6777199,"node_id":"MDQ6VXNlcjY3NzcxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6777199?v=4","gravatar_id":"","url":"https://api.github.com/users/Deccoy","html_url":"https://github.com/Deccoy","followers_url":"https://api.github.com/users/Deccoy/followers","following_url":"https://api.github.com/users/Deccoy/following{/other_user}","gists_url":"https://api.github.com/users/Deccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/Deccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deccoy/subscriptions","organizations_url":"https://api.github.com/users/Deccoy/orgs","repos_url":"https://api.github.com/users/Deccoy/repos","events_url":"https://api.github.com/users/Deccoy/events{/privacy}","received_events_url":"https://api.github.com/users/Deccoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T16:04:04Z","updated_at":"2018-06-05T16:04:04Z","closed_at":null,"author_association":"NONE","body":"The following check at the startup of kubelet always fails if the Linux kernel was compiled without swap support (-> /proc/swaps does not exist).\r\n\r\n(https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/cm/container_manager_linux.go)\r\n```\r\n// Check whether swap is enabled. The Kubelet does not support running with swap enabled.\r\nswapData, err := ioutil.ReadFile(\"/proc/swaps\")\r\nif err != nil {\r\n\treturn nil, err\r\n}\r\n```\r\nThe following code change may be possible here:\r\n\r\n```\r\n// Check whether swap is enabled. The Kubelet does not support running with swap enabled.\r\nswapData, err := ioutil.ReadFile(\"/proc/swaps\")\r\nif failSwapOn && err != nil {\r\n\treturn nil, err\r\n}\r\n```"}}
{"actor":{"display_login":"Deccoy"}}