Page MenuHomePhabricator

Remove swap partitions from VPS base images
Open, Needs TriagePublic

Description

The presence of swap is causing trouble on kubernetes hosts, and it's not clear that it's doing anyone else any good. Let's just get rid of it.

Event Timeline

Andrew created this task.Jul 30 2019, 9:11 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 30 2019, 9:11 PM

Change 526529 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] bootstrap-vz: remove swap partitions from Stretch and Buster images

https://gerrit.wikimedia.org/r/526529

Change 526529 merged by Andrew Bogott:
[operations/puppet@production] bootstrap-vz: remove swap partitions from Stretch and Buster images

https://gerrit.wikimedia.org/r/526529

For the record, this is what we do for the new k8s in Toolforge: profile::toolforge::k8s::kubeadm::preflight_checks in file modules/profile/manifests/toolforge/k8s/kubeadm/preflight_checks.pp.

The default Buster base image now has now swap partition. Future Stretch images will also not have one but I haven't installed a new Stretch build yet -- that can probably wait until we have other reasons to build a new one.