diff --git a/cluster/gce/config-common.sh b/cluster/gce/config-common.sh index 4c1bc3abeae..1515d3e0799 100644 --- a/cluster/gce/config-common.sh +++ b/cluster/gce/config-common.sh @@ -98,4 +98,6 @@ function get-cluster-ip-range { echo "${suggested_range}" } +# NOTE: Avoid giving nodes empty scopes, because kubelet needs a service account +# in order to initialize properly. NODE_SCOPES="${NODE_SCOPES:-monitoring,logging-write,storage-ro}" diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index bd3fe8ceaf9..80c73415dd9 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -121,6 +121,8 @@ MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}" # It is the primary range in the subnet and is the range used for node instance IPs. NODE_IP_RANGE="$(get-node-ip-range)" +# NOTE: Avoid giving nodes empty scopes, because kubelet needs a service account +# in order to initialize properly. NODE_SCOPES="${NODE_SCOPES:-monitoring,logging-write,storage-ro}" # Extra docker options for nodes.