Skip to content

Instantly share code, notes, and snippets.

@wmeints
Created October 7, 2017 11:47
Show Gist options
  • Save wmeints/c235e9e5dcfe0da97c5469adfd071c5c to your computer and use it in GitHub Desktop.
Save wmeints/c235e9e5dcfe0da97c5469adfd071c5c to your computer and use it in GitHub Desktop.
Setup kubernetes cluster quickly
#!/bin/sh
SUBSCRIPTION=$1
ENVIRONMENT=$2
az group create --name kubernetes-$ENVIRONMENT --location westeurope
az acs create --orchestrator-type kubernetes \
--resource-group kubernetes-$ENVIRONMENT \
--name $ENVIRONMENT \
--generate-ssh-keys \
--agent-count 1 \
--master-count 1 \
--dns-prefix mytd2017-$ENVIRONMENT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment