AKS Networking and Storage Design

AKS Networking and Storage Design

Watch the video to deepen your understanding.

Subscribe

Complete the full lesson to earn 25 points

Work through each section, then tap “Mark as Complete” on the last one.

Section 1 of 4

✦ Skip the page breaks and see fewer ads — read each lesson on a single page with Pro

Lesson: AKS Networking and Storage Design

Introduction

Azure Kubernetes Service (AKS) simplifies the deployment of managed Kubernetes clusters in Azure. However, the operational success of your applications depends heavily on how you architect the underlying infrastructure.

Networking in AKS determines how your pods communicate with each other, how they reach external services, and how they are secured. Storage in AKS ensures that your stateful applications (like databases or message queues) have persistent data access even when pods are rescheduled or nodes are patched. Designing these components correctly is vital for performance, scalability, and security.


1. Networking Design in AKS

AKS primarily utilizes the Azure CNI (Container Networking Interface) or Kubenet.

Azure CNI vs. Kubenet

  • Azure CNI: Every pod gets an IP address from the virtual network (VNet) subnet. This provides high performance and direct routing but requires careful IP address planning to avoid exhaustion.
  • Kubenet: Pods receive IPs from a virtual bridge. NAT is used to communicate outside the cluster. It is easier to set up but introduces complexity for external connectivity.

Practical Example: Ingress Controllers

To expose services to the internet, you should avoid using LoadBalancer services for every endpoint. Instead, use an Ingress Controller (like NGINX or AGIC).

Example: NGINX Ingress Resource

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: web-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
spec:
  rules:
  - host: myapp.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: web-service
            port:
              number: 80

Pro Tip: Use the Application Gateway Ingress Controller (AGIC) if you are already using Azure Application Gateway. It provides native WAF capabilities and seamless layer-7 load balancing.


Section 1 of 4
PrevNext