This is a bug report of the bundle cloud-native-basic
,
about the k8s automatic setup script /usr/share/clr-k8s-examples/setup_system.sh
Kubelet require disabling swap to start. setup_system.sh
does disable swap when running, however, it fails to disable swap permanently. Swap is re-enabled after reboot:
cat /proc/swaps
Filename Type Size Used Priority
/var/swapfile file 65532 0 -2
This causes kubelet.service
to fail, after setup via setup_system.sh
, after a reboot: (from journalctl)
kubelet[1280]: F0126 04:57:17.725711 1280 server.go:265] failed to run Kubelet: running with swap on is not supported, please disable swap! or set --fail-swap-on flag to false. /proc/swaps contained: [Filename Type Size Used Priority /var/swapfile file 65532 0 -2]
Should I post it also to the github repo ?