Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 3a0bdc1

Browse files
committed
swapoff in right place
1 parent d73c77b commit 3a0bdc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/default/machine_configs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ items:
123123
chmod 0600 ${CA_KEY_PATH}
124124
}
125125

126+
# running with swap is not supported
127+
swapoff -a
128+
126129
if [ "$ROLE" = "master" ]; then
127130
# Set up kubeadm config file to pass parameters to kubeadm init.
128131
touch /etc/kubernetes/kubeadm_config.yaml
@@ -157,8 +160,6 @@ items:
157160

158161
install_custom_ca
159162

160-
# running with swap is not supported
161-
swapoff -a
162163
kubeadm init --config /etc/kubernetes/kubeadm_config.yaml
163164
# Apply Weave CNI
164165
for tries in $(seq 1 60); do

0 commit comments

Comments
 (0)