Member-only story

Allodoxaphobia?Which networking option should I choice for my AKS deployment?Kubenet or Azure CNI?

Eason
4 min readJun 24, 2019

--

Recently, many peoples ask me about which networking option should I choice for my AKS (Azure Kubernetes Service) deployment in Production? Kubenet or Azure CNI?

To make it easier to understand, I’ll use Azure CLI command line to create AKS cluster in Kubenet & Azure CNI Network Plugin networking with diagram illustration for you easier understand what’s going on behind the scenes. I will deploy 1 POD in 2 replicas(with my Sample Java Web App in Spring Boot framework with Containerization) as demonstration/illustration purpose as well. I trusted you already read/study about AKS official documentation for Kubenet & Azure CNI network deployment options in details.

Let’s start from Kubenet…

az aks create --resource-group QooAKS2 --name qooaks02 --node-count 2 --network-plugin kubenet --service-cidr 11.0.0.0/22 --dns-service-ip 11.0.0.10 --pod-cidr 192.168.0.0/16 --docker-bridge-address 172.17.0.1/16 --vnet-subnet-id /subscriptions/YOUR_SUBSCRIPTION_ID/resourceGroups/YOUR_RESOURCES_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/QooAKS-vnet/subnets/AKSSubnet1 --service-principal YOUR_OWNED_SERVICE_PRINCIPAL --client-secret YOUR_OWNED_CLIENT_SECRET

--

--

No responses yet