Install Azure CNI network plugin on Master node
On the master node we now need to setup the networking by installing a network plugin. Azure CNI is an open source plugin that integrates Kubernetes Pods with an Azure Virtual Network (also known as VNet) providing network performance at par with VMs. Pods can connect to peered VNet and to on-premises over Express Route or site-to-site VPN and are also directly reachable from these networks. Pods can access Azure services, such as storage and SQL, that are protected by Service Endpoints or Private Link. You can use VNet security policies and routing to filter Pod traffic. The plugin assigns VNet IPs to Pods by utilizing a pool of secondary IPs pre-configured on the Network Interface of a Kubernetes node.
The Azure CNI plugin script is pre installed. We need to do some configuration steps to get it working in your environment.
Find out the latest version plugin version
Find out the latest CNI version
As of writing and in this example i will use the following versions:
PLUGIN_VERSION=”v1.2.8″
CNI_VERSION=”v0.9.1″
Run the following commands to run the install on the master node:
cd /bin/azure-vnet-cnm/
sudo bash ./install-cni-plugin.sh v1.2.8 v0.9.1