Last active
March 26, 2018 14:43
-
-
Save MattMencel/132d8ffcf91a14b02e911be196d39b23 to your computer and use it in GitHub Desktop.
Setup Azure AKS
This file contains hidden or 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
# Create Resource Group | |
az group create --name k8s --location eastus | |
# Register container service if not already done | |
az provider register -n Microsoft.ContainerService | |
# Create AKS Cluster | |
az aks create -n k8s-cluster -g k8s -c 2 -k 1.9.2 --generate-ssh-keys -l eastus --service-principal SERVICE_PRINCIPAL --client-secret CLIENT_SECRET | |
# Get kubectl credentials | |
az aks get-credentials -n k8s-cluster -g k8s | |
# Check nodes | |
kubectl get nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment