-
-
Save neidiom/5332c18fb8f8317e54008bb51038afcf to your computer and use it in GitHub Desktop.
Azure Kubernetes
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
# 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