MSDN Documentation

Azure Kubernetes Service (AKS)

Azure Kubernetes Service (AKS) Network Operations

This document details various networking operations and considerations for Azure Kubernetes Service (AKS). Effective network configuration is crucial for the security, scalability, and performance of your Kubernetes applications.

Core Networking Concepts

AKS leverages Azure Virtual Networks (VNets) to provide a robust networking foundation for your clusters. Key concepts include:

Network Plugins

AKS supports different network plugins to manage network policies and traffic flow:

Choosing a Network Plugin

The choice between Azure CNI and Kubenet depends on your specific requirements:

Network Security

Securing network traffic is paramount. AKS provides several mechanisms for network security:

Example: Network Policy Configuration


apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: deny-all-ingress
  namespace: default
spec:
  podSelector: {}
  policyTypes:
  - Ingress

This example denies all incoming traffic to Pods in the `default` namespace by default.

Load Balancing and Ingress

Exposing your applications securely and efficiently is achieved through load balancing and Ingress controllers.

Network Performance and Optimization

To ensure optimal performance, consider the following:

Note: When using Azure CNI, ensure that your subnet for Pods has sufficient IP address space to accommodate the expected number of Pods.
Tip: For advanced traffic management and security, consider using Azure Application Gateway with AGIC.

Troubleshooting Network Issues

Common network issues can often be diagnosed using Kubernetes tools and Azure monitoring:

Further Reading