a0b2a6cbaf
The legacy k8s repository was retired on March 26, 2024 [1]. The cri-o project followed k8s lead and moved the build to a new repository [2]. This patch changes the location of k8s, cri-o installed packages for Ubuntu based deployments only. Changes the value of the apiversion parameter in the kubeadm configuration because the new repository can also install 1.27.x and later versions of k8s that no longer support v1beta2 and earlier APIs. The version of the package to be installed can be specified using the K8S_VERSION and CRIO_VERSION variables. Also, the default values of K8S_VERSION and CRIO_VERSION have been changed, and it has been confirmed that tacker project FT works fine with the changed version. [1]https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/ [2]https://kubernetes.io/blog/2023/10/10/cri-o-community-package-infrastructure/ Change-Id: I0ce9fd2bcb5d79ebad2cecafabf8c9f33b106647
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Devstack settings
|
|
|
|
# Supported options are "docker" and "crio".
|
|
CONTAINER_ENGINE=${CONTAINER_ENGINE:-docker}
|
|
# TODO(hongbin): deprecate and remove clear container
|
|
ENABLE_CLEAR_CONTAINER=${ENABLE_CLEAR_CONTAINER:-false}
|
|
ENABLE_KATA_CONTAINERS=${ENABLE_KATA_CONTAINERS:-false}
|
|
ENABLE_LIVE_RESTORE=${ENABLE_LIVE_RESTORE:-false}
|
|
ENABLE_IPV6=${ENABLE_IPV6:-false}
|
|
K8S_NETWORK_ADDON=${K8S_NETWORK_ADDON:-flannel}
|
|
ENABLE_CONTAINERD_CRI=${ENABLE_CONTAINERD_CRI:-false}
|
|
CRIO_VERSION=${CRIO_VERSION:-"1.30.5"}
|
|
CRIO_ALLOW_ICMP=${CRIO_ALLOW_ICMP:-true}
|
|
CNI_CONF_DIR=${CNI_CONF_DIR:-}
|
|
CNI_PLUGIN_DIR=${CNI_PLUGIN_DIR:-}
|
|
|
|
UBUNTU_DOCKER_VERSION=${UBUNTU_DOCKER_VERSION:-}
|
|
|
|
# Enable container services
|
|
enable_service container
|
|
|
|
# Enable k8s services
|
|
if [[ ,${ENABLED_SERVICES} =~ ,"k8s-master" ]]; then
|
|
enable_service kube-controller-manager
|
|
enable_service kube-apiserver
|
|
enable_service kube-scheduler
|
|
enable_service kube-proxy
|
|
fi
|
|
|
|
# Customize kubeadm container images repository
|
|
KUBEADMIN_IMAGE_REPOSITORY=${KUBEADMIN_IMAGE_REPOSITORY:-"registry.k8s.io"}
|
|
|
|
# Configure crio pause image
|
|
CRIO_PAUSE_IMAGE=${CRIO_PAUSE_IMAGE:-"registry.k8s.io/pause:3.6"}
|
|
CRIO_PAUSE_COMMAND=${CRIO_PAUSE_COMMAND:-"/pause"}
|