mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
Move the defaults setting of GCI to util.sh
This change recovers some of the side effects of https://github.com/kubernetes/kubernetes/pull/26197, i.e., keeps the defaults of `NODE_IMAGE` and `NODE_IMAGE_PROJECT` to `MASTER_IMAGE` and `MASTER_IMAGE_PROJECT`, for backward compatibility. Although it keeps `OS_DISTRIBUTION` defaulting to `gci`, the default settings of these vars are moved to `cluster/gce/util.sh` and conditioned on `OS_DISTRIBUTION==gci`.
This commit is contained in:
@@ -34,21 +34,17 @@ REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-true}
|
||||
PREEMPTIBLE_NODE=${PREEMPTIBLE_NODE:-false}
|
||||
PREEMPTIBLE_MASTER=${PREEMPTIBLE_MASTER:-false}
|
||||
|
||||
|
||||
# Today the cluster startup scripts asssume the master and the nodes use the
|
||||
# same OS distro, thus same set of initialization instructions (e.g., metadata,
|
||||
# startup scripts, etc.). The current workaround is the hack in util.sh that
|
||||
# reloads <os_distro>/helper.sh in the gap between when the master is created
|
||||
# and when the nodes are created.
|
||||
# TODO(#26183): Provide a way to differentiate master OS distro and node OS
|
||||
# distro.
|
||||
OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-gci}
|
||||
# For GCI, leaving it blank will auto-select the latest GCI image on the `dev`
|
||||
# channel.
|
||||
# By default a cluster will be started with the master on GCI and nodes on
|
||||
# containervm. If you are updating the containervm version, update this
|
||||
# variable.
|
||||
CVM_VERSION=container-v1-3-v20160517
|
||||
MASTER_IMAGE=${KUBE_GCE_MASTER_IMAGE:-}
|
||||
MASTER_IMAGE_PROJECT=${KUBE_GCE_MASTER_PROJECT:-google-containers}
|
||||
NODE_IMAGE=${KUBE_GCE_NODE_IMAGE:-container-v1-3-v20160517}
|
||||
NODE_IMAGE_PROJECT=${KUBE_GCE_NODE_PROJECT:-google-containers}
|
||||
NODE_IMAGE=${KUBE_GCE_NODE_IMAGE:-"${MASTER_IMAGE}"}
|
||||
NODE_IMAGE_PROJECT=${KUBE_GCE_NODE_PROJECT:-"${MASTER_IMAGE_PROJECT}"}
|
||||
CONTAINER_RUNTIME=${KUBE_CONTAINER_RUNTIME:-docker}
|
||||
RKT_VERSION=${KUBE_RKT_VERSION:-0.5.5}
|
||||
|
||||
|
Reference in New Issue
Block a user