Skip to content

Commit

Permalink
Upgrade to minikube 1.33.0
Browse files Browse the repository at this point in the history
Minikube 1.33.0 adds useful features, fixes, and performance
improvements, but we could not use it because of a regression in
systemd-resolved[1].

A critical change in 1.33.0 is upgrading the kernel to 5.10.207. This
version fixes bad bug with minikube 1.32.0, when qemu assertion fails
while starting a kubevirt VM[2] on newer Intel CPUs (i7-12700k).

Now that we setup systemd-resolved configuration we can upgrade to
minikube 1.33.0, and Alex can run drenv kubevirt environment without
manual hacks.

This change:
- Updates the docs that latest minikube test is 1.33.0
- Setup minikube by default when creating the virtual environment, so
  minikube 1.33.0 support is added transparently for developers
- Setup drenv in the e2e job to support minikube 1.33.0
- Cleanup drenv in the e2e job so setup from previous build will not
  leak into the next build

[1] kubernetes/minikube#18705
[2] https://gitlab.com/qemu-project/qemu/-/issues/237

Thanks: Alex Kalenyuk <akalenyu@redhat.com>
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
  • Loading branch information
nirs committed May 7, 2024
1 parent 8f4754a commit b117aea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e.yaml
Expand Up @@ -73,3 +73,8 @@ jobs:
run: |
source ../venv
drenv delete ${{ env.ENV_FILE }}
- name: Cleanup drenv
if: ${{ always() }}
working-directory: test
run: drenv cleanup -v
2 changes: 1 addition & 1 deletion docs/user-quick-start.md
Expand Up @@ -97,7 +97,7 @@ enough resources:
sudo dnf install https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
```

Tested with version v1.31.
Tested with version v1.33.0.

1. Validate the installation

Expand Down
3 changes: 3 additions & 0 deletions hack/make-venv
Expand Up @@ -27,6 +27,9 @@ cp coverage.pth $venv/lib/python*/site-packages
echo "Adding venv symlink..."
ln -sf $venv/bin/activate venv

echo "Setting up minikube for drenv"
$venv/bin/drenv setup -v

echo
echo "To activate the environment run:"
echo
Expand Down
2 changes: 1 addition & 1 deletion test/README.md
Expand Up @@ -28,7 +28,7 @@ environment.
```

You need `minikube` version supporting the `--extra-disks` option.
Tested with version v1.31.2.
Tested with version v1.33.0.

1. Install the `kubectl` tool. See
[Install and Set Up kubectl on Linux](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
Expand Down

0 comments on commit b117aea

Please sign in to comment.