From a36a4440f45bf87e436dfc2cc7f69741fbde5c21 Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Sat, 14 Oct 2023 15:08:08 +0530 Subject: [PATCH] disable swap for kubeadm/kubeadm-fips --- Earthfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Earthfile b/Earthfile index 6e6fb2d..005dae2 100644 --- a/Earthfile +++ b/Earthfile @@ -137,6 +137,7 @@ provider-image: ARG IMAGE_PATH=$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$PE_VERSION-$CUSTOM_TAG IF [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ] + RUN swapoff -a ARG BASE_K8S_VERSION=$K8S_VERSION ELSE IF [ "$K8S_DISTRIBUTION" = "k3s" ] ARG K8S_DISTRIBUTION_TAG=$K3S_FLAVOR_TAG