Skip to content

Instantly share code, notes, and snippets.

@MattMencel
Last active March 26, 2018 14:43
Show Gist options
  • Save MattMencel/132d8ffcf91a14b02e911be196d39b23 to your computer and use it in GitHub Desktop.
Save MattMencel/132d8ffcf91a14b02e911be196d39b23 to your computer and use it in GitHub Desktop.
Setup Azure AKS
# 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