Skip to content

Commit 3fdeeda

Browse files
authored
NO-JIRA: tests(gha/k8s): install contrack and address kubernetes version compatibility issues (#1043)
* Added conntrack installation to resolve missing dependency error. * Updated CRI-O to v1.32 and Kubernetes to v1.33 to maintain compatibility and prevent version skew issues. * Changed CRI-O repository URL to use openSUSE source because the project migrated to the openSUSE Build Service.
1 parent 1ad21d2 commit 3fdeeda

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,20 +379,23 @@ jobs:
379379
sudo apt-get update
380380
sudo apt-get install -y software-properties-common curl
381381
382+
# https://github.com/cri-o/packaging?tab=readme-ov-file#distributions-using-deb-packages
383+
382384
curl -fsSL https://pkgs.k8s.io/core:/stable:/$KUBERNETES_VERSION/deb/Release.key | \
383385
sudo gpg --dearmor --batch --yes -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
384386
385387
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/$KUBERNETES_VERSION/deb/ /" | \
386388
sudo tee /etc/apt/sources.list.d/kubernetes.list
387389
388-
curl -fsSL https://pkgs.k8s.io/addons:/cri-o:/stable:/$CRIO_VERSION/deb/Release.key | \
390+
curl -fsSL https://download.opensuse.org/repositories/isv:/cri-o:/stable:/$CRIO_VERSION/deb/Release.key | \
389391
sudo gpg --dearmor --batch --yes -o /etc/apt/keyrings/cri-o-apt-keyring.gpg
390392
391-
echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://pkgs.k8s.io/addons:/cri-o:/stable:/$CRIO_VERSION/deb/ /" | \
393+
echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://download.opensuse.org/repositories/isv:/cri-o:/stable:/$CRIO_VERSION/deb/ /" | \
392394
sudo tee /etc/apt/sources.list.d/cri-o.list
393395
394396
sudo apt-get update
395-
sudo apt-get install -y cri-o kubelet kubeadm kubectl
397+
# [ERROR FileExisting-conntrack]: conntrack not found in system path
398+
sudo apt-get install -y cri-o kubelet kubeadm kubectl conntrack
396399
397400
# make use of /etc/cni/net.d/11-crio-ipv4-bridge.conflist so we don't
398401
# need a pod network and just use the default bridge
@@ -406,8 +409,12 @@ jobs:
406409
407410
sudo systemctl start crio.service
408411
env:
409-
CRIO_VERSION: v1.30
410-
KUBERNETES_VERSION: v1.30
412+
CRIO_VERSION: v1.32
413+
# This has to be kept in sync with the packages above, otherwise
414+
# [ERROR KubeletVersion]: the kubelet version is higher than the control plane version.
415+
# This is not a supported version skew and may lead to a malfunctional cluster.
416+
# Kubelet version: "1.33.0" Control plane version: "1.30.12"
417+
KUBERNETES_VERSION: v1.33
411418

412419
- name: Show crio debug data (on failure)
413420
if: ${{ failure() && steps.have-tests.outputs.tests == 'true' }}

0 commit comments

Comments
 (0)