mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
AWS: Use auto-scaling group to run minions
This uses the dynamic CIDR work, and we set source-dest-check to false when we configure the route (which kind-of makes sense)
This commit is contained in:
@@ -25,7 +25,6 @@ function detect-minion-image() {
|
||||
}
|
||||
|
||||
function generate-minion-user-data {
|
||||
i=$1
|
||||
# We pipe this to the ami as a startup script in the user-data field. Requires a compatible ami
|
||||
echo "#! /bin/bash"
|
||||
echo "SALT_MASTER='${MASTER_INTERNAL_IP}'"
|
||||
@@ -37,8 +36,7 @@ function generate-minion-user-data {
|
||||
}
|
||||
|
||||
function check-minion() {
|
||||
local minion_name=$1
|
||||
local minion_ip=$2
|
||||
local minion_ip=$1
|
||||
|
||||
local output=$(ssh -oStrictHostKeyChecking=no -i "${AWS_SSH_KEY}" ${SSH_USER}@$minion_ip sudo docker ps -a 2>/dev/null)
|
||||
if [[ -z "${output}" ]]; then
|
||||
|
Reference in New Issue
Block a user