Skip to content

Instantly share code, notes, and snippets.

@jonahgeorge
Last active April 5, 2018 11:27
Show Gist options
  • Save jonahgeorge/6349740b860294c99688e493ec47fd8d to your computer and use it in GitHub Desktop.
Save jonahgeorge/6349740b860294c99688e493ec47fd8d to your computer and use it in GitHub Desktop.
Azure Kubernetes
# Install Azure CLI
brew update
brew install azure-cli
# Authenticate cli client
az login
# Register providers
az provider register -n Microsoft.ContainerService
az provider register -n Microsoft.Compute
az provider register -n Microsoft.Storage
az provider register -n Microsoft.Network
# Wait for providers to finish registering
az provider list --query "[].{Provider:namespace, Status:registrationState}" --out table
# List locations
az account list-locations
# Create ResourceGroup
az group create -l eastus -g forge
# Create Kubernetes Cluster
az aks create \
--resource-group forge \
--name forge \
--node-vm-size Standard_A0 \
--kubernetes-version 1.9.2
# Get
az aks get-credentials --resource-group forge --name forge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment