Skip to content

Commit 223fbab

Browse files
authored
NO-JIRA: upd(ci): use latest k8s 1.34 and cri-o 1.34 (opendatahub-io#2540)
1 parent 1023be0 commit 223fbab

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/actions/provision-k8s/action.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
# E: Packages were downgraded and -y was used without --allow-downgrades.
4545
4646
sudo apt-get install -y --allow-downgrades \
47-
"cri-o=${CRIO_VERSION}.*" \
47+
"cri-o=${CRIO_VERSION}.*" "cri-tools=${CRIO_VERSION}.*" \
4848
"kubelet=${KUBERNETES_VERSION}.*" "kubeadm=${KUBERNETES_VERSION}.*" "kubectl=${KUBERNETES_VERSION}.*" \
4949
conntrack
5050
@@ -61,13 +61,12 @@ runs:
6161
sudo systemctl daemon-reload
6262
sudo systemctl start crio.service
6363
env:
64-
# TODO(jdanek): install also "cri-tools=${CRIO_VERSION}.*" when updating to 1.33
65-
CRIO_VERSION: 1.32
64+
CRIO_VERSION: 1.34
6665
# This has to be kept in sync with the packages above, otherwise
6766
# [ERROR KubeletVersion]: the kubelet version is higher than the control plane version.
6867
# This is not a supported version skew and may lead to a malfunctional cluster.
6968
# Kubelet version: "1.33.0" Control plane version: "1.30.12"
70-
KUBERNETES_VERSION: 1.33
69+
KUBERNETES_VERSION: 1.34
7170
# Also update version in kubeadm.yaml
7271

7372
- run: sudo crictl info
@@ -158,8 +157,17 @@ runs:
158157
shell: bash
159158
run: |
160159
set -Eeuxo pipefail
161-
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.31/deploy/local-path-storage.yaml
162-
kubectl wait deployments --all --namespace=local-path-storage --for=condition=Available --timeout=100s
160+
# InspectFailed Failed to inspect image "": rpc error: code = Unknown desc = short name mode is enforcing, but image name rancher/local-path-provisioner:v0.0.31 returns ambiguous list
161+
(curl -fsSL https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.32/deploy/local-path-storage.yaml |
162+
sed 's|image: rancher/local-path-provisioner|image: docker.io/rancher/local-path-provisioner|g' |
163+
kubectl apply -f -
164+
)
165+
kubectl wait deployments --all --namespace=local-path-storage --for=condition=Available --timeout=100s || (
166+
kubectl describe deployments --namespace=local-path-storage
167+
kubectl --namespace=local-path-storage get events --sort-by='.lastTimestamp'
168+
kubectl --namespace=local-path-storage describe pods
169+
false
170+
)
163171
# https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/
164172
kubectl get storageclass
165173
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

ci/cached-builds/kubeadm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ timeouts:
3939
---
4040
apiVersion: kubeadm.k8s.io/v1beta4
4141
kind: ClusterConfiguration
42-
kubernetesVersion: 1.33.0
42+
kubernetesVersion: 1.34.0
4343
clusterName: kubernetes
4444
caCertificateValidityPeriod: 87600h0m0s
4545
certificateValidityPeriod: 8760h0m0s

0 commit comments

Comments
 (0)