Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Last active April 6, 2022 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixelRobots/e569d700608271b8ef887116b5722a27 to your computer and use it in GitHub Desktop.
Save PixelRobots/e569d700608271b8ef887116b5722a27 to your computer and use it in GitHub Desktop.
# Install the aks-preview extension
az extension add --name aks-preview
# Update the extension to make sure you have the latest version installed
az extension update --name aks-preview
# Create resource group
az group create -l westeurope -n rg-aks-byo-cni
# Deploy cluster
az aks create -l westeurope -g rg-aks-byo-cni -n aks-byo-cni --generate-ssh-keys --network-plugin none
az aks get-credentials -g rg-aks-byo-cni -n aks-byo-cni
kubectl get nodes
kubectl get node -o custom-columns='NAME:.metadata.name,STATUS:.status.conditions[?(@.type=="Ready")].message'
# Install cilium cli
curl -L --remote-name-all https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz{,.sha256sum}
sha256sum --check cilium-linux-amd64.tar.gz.sha256sum
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin
rm cilium-linux-amd64.tar.gz{,.sha256sum}
# Install CNI
cilium install --azure-resource-group rg-aks-byo-cni --datapath-mode vxlan --ipam=cluster-pool --config cluster-pool-ipv4-cidr=10.240.0.0/16 --config cluster-pool-ipv4-mask-size=24
cilium status --wait
cilium connectivity test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment