-
-
Save PixelRobots/e569d700608271b8ef887116b5722a27 to your computer and use it in GitHub Desktop.
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 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