mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	gce: remove compute-rw, see what breaks
This commit is contained in:
		@@ -99,7 +99,7 @@ function get-cluster-ip-range {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if [[ "${FEDERATION:-}" == true ]]; then
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-compute-rw,monitoring,logging-write,storage-ro,https://www.googleapis.com/auth/ndev.clouddns.readwrite}"
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-monitoring,logging-write,storage-ro,https://www.googleapis.com/auth/ndev.clouddns.readwrite}"
 | 
			
		||||
else
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-compute-rw,monitoring,logging-write,storage-ro}"
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-monitoring,logging-write,storage-ro}"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
@@ -96,9 +96,9 @@ CLUSTER_IP_RANGE="${CLUSTER_IP_RANGE:-$(get-cluster-ip-range)}"
 | 
			
		||||
MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
 | 
			
		||||
 | 
			
		||||
if [[ "${FEDERATION:-}" == true ]]; then
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-compute-rw,monitoring,logging-write,storage-ro,https://www.googleapis.com/auth/ndev.clouddns.readwrite}"
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-monitoring,logging-write,storage-ro,https://www.googleapis.com/auth/ndev.clouddns.readwrite}"
 | 
			
		||||
else
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-compute-rw,monitoring,logging-write,storage-ro}"
 | 
			
		||||
    NODE_SCOPES="${NODE_SCOPES:-monitoring,logging-write,storage-ro}"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Extra docker options for nodes.
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@ function create-master-instance-with-resources {
 | 
			
		||||
    --image "${MASTER_IMAGE}" \
 | 
			
		||||
    --tags "${MASTER_TAG}" \
 | 
			
		||||
    --subnet "${NETWORK}" \
 | 
			
		||||
    --scopes "storage-ro,compute-rw,logging-write" \
 | 
			
		||||
    --scopes "storage-ro,logging-write" \
 | 
			
		||||
    --boot-disk-size "${MASTER_ROOT_DISK_SIZE}" \
 | 
			
		||||
    --disk "name=${MASTER_NAME}-pd,device-name=master-pd,mode=rw,boot=no,auto-delete=no"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user