Skip to content

Commit

Permalink
disable swap for kubeadm/kubeadm-fips (#71)
Browse files Browse the repository at this point in the history
* disable swap for kubeadm/kubeadm-fips

* copied apparmor_parser to /usr/local/bin
  • Loading branch information
kpiyush17 authored Oct 14, 2023
1 parent 2d65d1e commit 0ec2f6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -274,6 +275,7 @@ base-image:
RUN zypper install -y apparmor-parser apparmor-profiles
RUN zypper cc && \
zypper clean
RUN cp /sbin/apparmor_parser /usr/local/bin/apparmor_parser
END

IF [ "$ARCH" = "arm64" ]
Expand Down

0 comments on commit 0ec2f6a

Please sign in to comment.