Created
May 11, 2018 10:59
-
-
Save omerh/53e853e08eb281adfebf89e0c2dcc9b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# https://github.com/kubernetes/kops/blob/master/docs/networking.md | |
# https://chrislovecnm.com/kubernetes/cni/choosing-a-cni-provider/ | |
# Trouble at scale | |
# https://blog.openai.com/scaling-kubernetes-to-2500-nodes/ | |
export NODE_SIZE=${NODE_SIZE:-t2.micro} | |
export NODE_COUNT='99' | |
export MASTER_SIZE=${MASTER_SIZE:-m4.large} | |
export MASTER_ZONES='us-east-1a' #Add zones for HA | |
export ZONES=${ZONES:-"us-east-1a,us-east-1b"} | |
export NAME='cluster.aws.minerva.sh' | |
#export VPC_ID='vpc-8773e4ff' ## For existing VPC, edit subnets before update --yes | |
export ZONEID='[ADD ZONE ID]' | |
export PUBLICSSH='~/.ssh/id_rsa.pub' | |
kops create cluster \ | |
--name=${NAME} \ | |
--node-count=${NODE_COUNT} \ | |
--node-size=${NODE_SIZE} \ | |
--master-size ${MASTER_SIZE} \ | |
--master-zones ${MASTER_ZONES} \ | |
--zones=${ZONES} \ | |
--dns-zone=${ZONEID} \ | |
--cloud=aws \ | |
--networking weave \ | |
--topology private \ | |
--ssh-public-key=${PUBLICSSH} | |
# --vpc=${VPC_ID} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excellent share!
Thanks Omer!