alexellis / k8s-on-raspbian

Kubernetes on Raspbian (Raspberry Pi)
https://blog.alexellis.io/build-your-own-bare-metal-arm-cluster/
MIT License
882 stars 130 forks source link

Update swap disable instructions in GUIDE.md #22

Closed petehalverson closed 4 years ago

petehalverson commented 4 years ago

Follow @davidcollom's comment in #16.

swap would be enabled after each boot: sudo systemctl disable dphys-swapfile followed by a reboot, fixed this.

DmitryZajcev commented 4 years ago

+1

alexellis commented 4 years ago

Do you want to send a PR for this? Make sure you sign off the commit with git commit -s

See also k3s as the recommended K8s for ARMHF.

alexellis commented 4 years ago

I see a note here: sudo systemctl disable dphys-swapfile

But the documentation shows:

Turn off swap:

$ sudo dphys-swapfile swapoff && \
  sudo dphys-swapfile uninstall && \
  sudo update-rc.d dphys-swapfile remove

Are you saying that uninstalling and removing the unit file means it gets enabled on reboot?

DmitryZajcev commented 4 years ago

@alexellis, when I was following the guide from medium I found that after raspberry reboot sudo swapon --summary command shows one swap enabled and I had to apply these swap disable instructions again.

alexellis commented 4 years ago

Wow he's completely ripped off my materials without crediting the source, this happens a lot and I don't think people understand copyright at all.

https://medium.com/nycdev/k8s-on-pi-9cc14843d43

I've added the command as suggested.