File tree 5 files changed +14
-8
lines changed
patch/prepull-images/post-install.d
5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 2
2
DISTR=noble
3
3
4
4
# Kubernetes with runtime
5
- DIB_KUBERNETES_VERSION=1.30.10
5
+ DIB_KUBERNETES_VERSION=1.30.11
6
6
DIB_CRI_TOOLS_VERSION=1.32.0
7
7
8
8
# There are some crash issues (Cinder controller) with containerd 1.7.24+ and Calico CNI
@@ -17,5 +17,6 @@ DIB_NPD_VERSION=0.8.20
17
17
DIB_CNI_PLUGINS_VERSION=1.5.1
18
18
19
19
# Prepull cni images (comment out the lines below to avoid pulling cni images)
20
+ DIB_CLOUD_PROVIDER_TAG=v1.30.0
20
21
DIB_CILIUM_TAG=v1.15.3
21
22
DIB_CALICO_TAG=v3.29.0
Original file line number Diff line number Diff line change 2
2
DISTR=noble
3
3
4
4
# Kubernetes with runtime
5
- DIB_KUBERNETES_VERSION=1.31.6
5
+ DIB_KUBERNETES_VERSION=1.31.7
6
6
DIB_CRI_TOOLS_VERSION=1.32.0
7
7
8
8
# There are some crash issues (Cinder controller) with containerd 1.7.24+ and Calico CNI
@@ -17,5 +17,6 @@ DIB_NPD_VERSION=0.8.20
17
17
DIB_CNI_PLUGINS_VERSION=1.5.1
18
18
19
19
# Prepull cni images (comment out the lines below to avoid pulling cni images)
20
+ DIB_CLOUD_PROVIDER_TAG=v1.31.0
20
21
DIB_CILIUM_TAG=v1.15.3
21
22
DIB_CALICO_TAG=v3.29.0
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ docker run --rm --privileged --network host -v $imagedir:/image magnum-kubernete
16
16
export DIB_CRI_TOOLS_VERSION="' $DIB_CRI_TOOLS_VERSION ' " && \
17
17
export DIB_NPD_VERSION="' $DIB_NPD_VERSION ' " && \
18
18
export DIB_RUNC_VERSION="' $DIB_RUNC_VERSION ' " && \
19
+ export DIB_CLOUD_PROVIDER_TAG="' $DIB_CLOUD_PROVIDER_TAG ' " && \
19
20
export DIB_CILIUM_TAG="' $DIB_CILIUM_TAG ' " && \
20
21
export DIB_CALICO_TAG="' $DIB_CALICO_TAG ' " && \
21
22
disk-image-create -x -t qcow2 \
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ docker run --rm --privileged --network host -v $imagedir:/image magnum-kubernete
16
16
export DIB_CRI_TOOLS_VERSION="' $DIB_CRI_TOOLS_VERSION ' " && \
17
17
export DIB_NPD_VERSION="' $DIB_NPD_VERSION ' " && \
18
18
export DIB_RUNC_VERSION="' $DIB_RUNC_VERSION ' " && \
19
+ export DIB_CLOUD_PROVIDER_TAG="' $DIB_CLOUD_PROVIDER_TAG ' " && \
19
20
export DIB_CILIUM_TAG="' $DIB_CILIUM_TAG ' " && \
20
21
export DIB_CALICO_TAG="' $DIB_CALICO_TAG ' " && \
21
22
disk-image-create -x -t qcow2 \
Original file line number Diff line number Diff line change 26
26
crictl pull registry.k8s.io/provider-os/cinder-csi-plugin:v1.28.0
27
27
crictl pull registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.6.3
28
28
crictl pull registry.k8s.io/sig-storage/livenessprobe:v2.9.0
29
- crictl pull registry.k8s.io/provider-os/openstack-cloud-controller-manager:v1.28.0
29
+ if [ ${DIB_CLOUD_PROVIDER_TAG:- " " } ]; then
30
+ crictl pull registry.k8s.io/provider-os/openstack-cloud-controller-manager:$DIB_CLOUD_PROVIDER_TAG
31
+ fi
30
32
31
33
# Pre pull large cni images
32
34
if [ ${DIB_CILIUM_TAG:- " " } ]; then
@@ -39,12 +41,12 @@ if [ ${DIB_CALICO_TAG:-""} ]; then
39
41
# crictl pull docker.io/calico/kube-controllers:$DIB_CALICO_TAG
40
42
fi
41
43
42
- # Optimization (trying to keep prepulled images with --no-unpack option)
44
+ # Optimization (trying to keep some prepulled images with --no-unpack option)
43
45
mkdir -p /tmp/pulledimages
44
- # exporting cni/openstack images to /tmp/pulledimages
45
- crictl images | grep -E -- ' cilium|calico|sig-storage|provider-os ' | awk ' {print "/tmp/pulledimages/"$3".tar " $1":"$2}' | xargs -L1 ctr -n k8s.io images export
46
- # deleting cni/openstack images
47
- crictl images | grep -E -- ' cilium|calico|sig-storage|provider-os ' | awk ' {print $3}' | xargs -n 1 crictl rmi
46
+ # exporting cni images to /tmp/pulledimages
47
+ crictl images | grep -E -- ' cilium|calico' | awk ' {print "/tmp/pulledimages/"$3".tar " $1":"$2}' | xargs -L1 ctr -n k8s.io images export
48
+ # deleting cni images
49
+ crictl images | grep -E -- ' cilium|calico' | awk ' {print $3}' | xargs -n 1 crictl rmi
48
50
# reimporting images with no-unpack option
49
51
ls -1 /tmp/pulledimages/* | xargs -L1 ctr -n k8s.io images import --no-unpack
50
52
rm -rf /tmp/pulledimages
You can’t perform that action at this time.
0 commit comments