In some places of which network environment was limited, kubeadm can't pull images from k8s.gcr.io. This patch add a variable `KUBEADMIN_IMAGE_REPOSITORY` in order to the developer who located in these places can set the kubeadm to pull container images from repository that they can access. Change-Id: I14aed50077ef0760635e575770fd2274cb759c53
30 lines
1009 B
Plaintext
30 lines
1009 B
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.18:/1.18.0"}
|
|
CRIO_ALLOW_ICMP=${CRIO_ALLOW_ICMP:-true}
|
|
CNI_CONF_DIR=${CNI_CONF_DIR:-}
|
|
CNI_PLUGIN_DIR=${CNI_PLUGIN_DIR:-}
|
|
|
|
# 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:-"k8s.gcr.io"}
|