diff --git a/scripts/pre-kubeadminit.sh b/scripts/pre-kubeadminit.sh old mode 100644 new mode 100755 index 434f6abb4..ef92217ef --- a/scripts/pre-kubeadminit.sh +++ b/scripts/pre-kubeadminit.sh @@ -1,7 +1,10 @@ #!/bin/bash set -euo pipefail -CONTAINERD_VERSION='1.7.20' -CNI_PLUGIN_VERSIONS='1.5.1' +DEFAULT_CONTAINERD_VERSION=1.7.24 +DEFAULT_CNI_PLUGIN_VERSIONS=1.6.1 +CONTAINERD_VERSION="${CONTAINERD_VERSION:=$DEFAULT_CONTAINERD_VERSION}" +CNI_PLUGIN_VERSIONS="${CNI_PLUGIN_VERSIONS:=$DEFAULT_CNI_PLUGIN_VERSIONS}" + # setup containerd config mkdir -p -m 755 /etc/containerd cat > /etc/containerd/config.toml << EOF