mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Allows adding custom api scopes to service accounts available in
minions.
This commit is contained in:
parent
40c71e8292
commit
cf9ee4d9dd
@ -28,3 +28,4 @@ MASTER_TAG="${INSTANCE_PREFIX}-master"
|
||||
MINION_TAG="${INSTANCE_PREFIX}-minion"
|
||||
MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
|
||||
MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24"))
|
||||
MINION_SCOPES=""
|
||||
|
@ -28,4 +28,4 @@ MASTER_TAG="${INSTANCE_PREFIX}-master"
|
||||
MINION_TAG="${INSTANCE_PREFIX}-minion"
|
||||
MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
|
||||
MINION_IP_RANGES=($(eval echo "10.245.{1..${NUM_MINIONS}}.0/24"))
|
||||
|
||||
MINION_SCOPES=""
|
||||
|
@ -95,7 +95,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
||||
--image ${IMAGE} \
|
||||
--tags ${MINION_TAG} \
|
||||
--network ${NETWORK} \
|
||||
--service_account_scopes="" \
|
||||
--service_account_scopes=${MINION_SCOPES} \
|
||||
--automatic_restart \
|
||||
--can_ip_forward \
|
||||
--metadata_from_file startup-script:${KUBE_TEMP}/minion-start-${i}.sh &
|
||||
|
Loading…
Reference in New Issue
Block a user