Skip to content
Snippets Groups Projects
Commit f7eefb25 authored by Mark Beierl's avatar Mark Beierl
Browse files

Attempt to remove swap


Attempts to persist the deactivation of swap across reboots.
Note: this can still be overridden by external mechanisms
such as cloud-init

Fixes Bug 1062

Change-Id: I4b78191da63a1528bfe56d2c3e9a33342b86af21
Signed-off-by: default avatarbeierlm <mark.beierl@canonical.com>
parent 9a510864
No related branches found
No related tags found
No related merge requests found
......@@ -852,6 +852,7 @@ function install_kube() {
#initializes kubernetes control plane
function init_kubeadm() {
sudo swapoff -a
sudo sed -i.bak '/.*none.*swap/s/^\(.*\)$/#\1/g' /etc/fstab
sudo kubeadm init --config $1
sleep 5
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment