Skip to content

Commit f8c6a29

Browse files
NO-JIRA: tests(gha/k8s): install contrack and address kubernetes version compatibility issues (#1195)
Added `conntrack` installation to resolve missing dependency error. Updated CRI-O and Kubernetes versions to v1.33 to maintain compatibility and prevent version skew issues Update CRI-O repo and fix conntrack dependency issue Adjusted CRI-O repository URL to use openSUSE source because the project migratd to the SUSe build service. Co-authored-by: Jiri Daněk <[email protected]>
1 parent 9aa10d5 commit f8c6a29

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
@@ -346,20 +346,23 @@ jobs:
346346
sudo apt-get update
347347
sudo apt-get install -y software-properties-common curl
348348
349+
# https://github.com/cri-o/packaging?tab=readme-ov-file#distributions-using-deb-packages
350+
349351
curl -fsSL https://pkgs.k8s.io/core:/stable:/$KUBERNETES_VERSION/deb/Release.key | \
350352
sudo gpg --dearmor --batch --yes -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
351353
352354
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/$KUBERNETES_VERSION/deb/ /" | \
353355
sudo tee /etc/apt/sources.list.d/kubernetes.list
354356
355-
curl -fsSL https://pkgs.k8s.io/addons:/cri-o:/stable:/$CRIO_VERSION/deb/Release.key | \
357+
curl -fsSL https://download.opensuse.org/repositories/isv:/cri-o:/stable:/$CRIO_VERSION/deb/Release.key | \
356358
sudo gpg --dearmor --batch --yes -o /etc/apt/keyrings/cri-o-apt-keyring.gpg
357359
358-
echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://pkgs.k8s.io/addons:/cri-o:/stable:/$CRIO_VERSION/deb/ /" | \
360+
echo "deb [signed-by=/etc/apt/keyrings/cri-o-apt-keyring.gpg] https://download.opensuse.org/repositories/isv:/cri-o:/stable:/$CRIO_VERSION/deb/ /" | \
359361
sudo tee /etc/apt/sources.list.d/cri-o.list
360362
361363
sudo apt-get update
362-
sudo apt-get install -y cri-o kubelet kubeadm kubectl
364+
# [ERROR FileExisting-conntrack]: conntrack not found in system path
365+
sudo apt-get install -y cri-o kubelet kubeadm kubectl conntrack
363366
364367
# make use of /etc/cni/net.d/11-crio-ipv4-bridge.conflist so we don't
365368
# need a pod network and just use the default bridge
@@ -373,8 +376,12 @@ jobs:
373376
374377
sudo systemctl start crio.service
375378
env:
376-
CRIO_VERSION: v1.30
377-
KUBERNETES_VERSION: v1.30
379+
CRIO_VERSION: v1.32
380+
# This has to be kept in sync with the packages above, otherwise
381+
# [ERROR KubeletVersion]: the kubelet version is higher than the control plane version.
382+
# This is not a supported version skew and may lead to a malfunctional cluster.
383+
# Kubelet version: "1.33.0" Control plane version: "1.30.12"
384+
KUBERNETES_VERSION: v1.33
378385

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

0 commit comments

Comments
 (0)