Skip to content

Commit

Permalink
kubevirt: Fix deploying kubevirt on git actions (#1843)
Browse files Browse the repository at this point in the history
Since we are using git actions, the resources are limited.

We saw out of space errors, fix them by cleaning the container before
deploying the pods.

Also don't deploy some components to free more memory resources.

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval authored Aug 6, 2024
1 parent 12e7034 commit 52850e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/kubevirt-ipam-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Free up disk space
run: |
sudo rm -rf /usr/local/lib/android/sdk
sudo apt-get update
sudo eatmydata apt-get purge --auto-remove -y \
azure-cli aspnetcore-* dotnet-* ghc-* firefox \
google-chrome-stable \
llvm-* microsoft-edge-stable mono-* \
msbuild mysql-server-core-* php-* php7* \
powershell temurin-* zulu-*
- name: Run e2e tests
env:
KIND_ALLOW_SYSTEM_WRITES: true
Expand Down
8 changes: 4 additions & 4 deletions automation/components-functests.setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,20 @@ kind: NetworkAddonsConfig
metadata:
name: cluster
spec:
linuxBridge: {}
kubeMacPool:
rangeStart: "02:00:00:00:00:00"
rangeEnd: "02:00:00:00:00:0F"
ovs: {}
macvtap: {}
kubeSecondaryDNS: {}
kubevirtIpamController: {}
imagePullPolicy: Always
EOF

if [[ $USE_KUBEVIRTCI == true ]]; then
echo " linuxBridge: {}" >> cr.yaml
echo " multus: {}" >> cr.yaml
echo " multusDynamicNetworks: {}" >> cr.yaml
echo " ovs: {}" >> cr.yaml
echo " macvtap: {}" >> cr.yaml
echo " kubeSecondaryDNS: {}" >> cr.yaml
fi

cluster/kubectl.sh apply -f cr.yaml
Expand Down

0 comments on commit 52850e6

Please sign in to comment.