mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
enhancement(aws): using iam role to pass aws credentials
This commit is contained in:
parent
2118c31bdb
commit
cbaa48bbc2
@ -35,3 +35,4 @@ MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24"))
|
||||
MINION_SCOPES=""
|
||||
POLL_SLEEP_INTERVAL=3
|
||||
PORTAL_NET="10.0.0.0/16"
|
||||
IAM_PROFILE="kubernetes"
|
||||
|
@ -268,6 +268,7 @@ function kube-up {
|
||||
|
||||
master_id=$($AWS_CMD run-instances \
|
||||
--image-id $IMAGE \
|
||||
--iam-instance-profile Name=$IAM_PROFILE \
|
||||
--instance-type $MASTER_SIZE \
|
||||
--subnet-id $SUBNET_ID \
|
||||
--private-ip-address 172.20.0.9 \
|
||||
@ -290,6 +291,7 @@ function kube-up {
|
||||
) > "${KUBE_TEMP}/minion-start-${i}.sh"
|
||||
minion_id=$($AWS_CMD run-instances \
|
||||
--image-id $IMAGE \
|
||||
--iam-instance-profile Name=$IAM_PROFILE \
|
||||
--instance-type $MINION_SIZE \
|
||||
--subnet-id $SUBNET_ID \
|
||||
--private-ip-address 172.20.0.1${i} \
|
||||
|
Loading…
Reference in New Issue
Block a user