SlideShare a Scribd company logo
Festive time with AKS networking
Festive Tech Calendar 2022
Who we are
© white duck GmbH 2022
Nico Meisenzahl (Head of DevOps Consulting and Operations,
Cloud Solution Architect, Azure & Developer Technologies MVP, GitLab Hero)
Email: nico.meisenzahl@whiteduck.de
Twitter: @nmeisenzahl
LinkedIn: https://www.linkedin.com/in/nicomeisenzahl/
Philip Welz (Senior Kubernetes & DevOps Engineer,
GitLab Hero, CKA, CKAD & CKS)
Twitter: @philip_welz
LinkedIn: https://www.linkedin.com/in/philip-welz
Agenda
• Intro to AKS networking
• Control plane networking options
• Cilium-powered data plane
• Private API server options
© white duck GmbH 2022
INTRO TO AKS NETWORKING
© white duck GmbH 2022
The layers of AKS networking
• pod-to-pod traffic
• pod-to-service networking
• in-cluster DNS
• cluster ingress/egress traffic
• traffic between K8s control and data plane
• API-server access
© white duck GmbH 2022
What we are focusing on today
• pod-to-pod traffic
• pod-to-service networking
• in-cluster DNS
• cluster ingress/egress traffic
• traffic between K8s control and data plane
• API-server access
© white duck GmbH 2022
CONTROL PLANE NETWORKING
OPTIONS
© white duck GmbH 2022
Cluster-wide east-west traffic
• mandatory to get a functioning Kubernetes cluster
• pod-to-pod communication
• there are multiple implementations with AKS
• you have the choice J
© white duck GmbH 2022
Container Network Interface (CNI)
• Container Network Interface (CNI) is
• an abstraction layer
• a vendor-neutral specification
• used by Kubernetes and others (Mesos, CloudFoundry)
• vendor implementations are called plugins
• https://github.com/containernetworking/cni
© white duck GmbH 2022
Kubenet
• very basic & simple plugin implementation
• typically used with single-node or cloud provider that sets up
routing rules for communication between nodes
• itself does not implement advanced features such as
cross-node networking or network policies
• Linux only
• no Windows nodes/pods
© white duck GmbH 2022
Kubenet & Azure Kubernetes Service
• requires outbound internet connectivity
• one cluster per subnet
• max of 400 nodes (due to UDR limit)
• additional hop is required in the design of Kubenet
• no direct pod addressing/routing
• no support for
• Azure Network Policies
• Calico Network Policies support Kubenet
• Virtual node addon (ACI)
• https://learn.microsoft.com/azure/aks/configure-kubenet
© white duck GmbH 2022
Kubenet & Azure Kubernetes Service
© white duck GmbH 2022
When to use Kubenet with AKS
• you require dual-stack (IPv4/IPv6)
• most of the pod communication is within the cluster
• you don't need advanced AKS features
• (you have limited IP address space)
© white duck GmbH 2022
CNI & Azure Kubernetes Service
• you have further options …
• Azure CNI
• with dynamic allocation of IP addresses
• with advanced subnet support
• Azure CNI Overlay (preview)
• the better Kubenet
• Bring-your-own CNI
© white duck GmbH 2022
Azure CNI
• flexible
• supports all AKS features and use-cases
• got even more flexible with dynamic allocation and
advanced subnet support
• latter can fix issues with IP address planning
• https://learn.microsoft.com/azure/aks/configure-azure-cni
© white duck GmbH 2022
Azure CNI
© white duck GmbH 2022
When to use Azure CNI
• most of the time: the preferred way
• pod communication is also with resources outside of the
cluster
• you need AKS advanced features
• (you have available IP address space)
© white duck GmbH 2022
Azure CNI Overlay
• still preview!
• currently only available in
• North Central US
• West Central US
• the better Kubenet (when GA)
• up to 1000 nodes
• no performance degrade
• full support for Network Policies
• still Linux only
• no support for some advanced features like virtual node
• https://learn.microsoft.com/azure/aks/azure-cni-overlay
© white duck GmbH 2022
Azure CNI Overlay
© white duck GmbH 2022
When to use Azure CNI Overlay
• you would like to scale but have limited IP address spaces
• most of the pod communication is within the cluster
• you want to use Kubernetes Network Policies
• you don't need advanced AKS features
© white duck GmbH 2022
Bring-your-own CNI
• full flexibility
• deploy your CNI plugin of choice
• no support by Azure on CNI related issues
• limitations very based on the chosen plugin
• https://learn.microsoft.com/azure/aks/use-byo-cni
© white duck GmbH 2022
CILIUM-POWERED DATA PLANE
© white duck GmbH 2022
Azure CNI powered by Cilium
• still preview!
• managed Cilium offering
• offers Pod networking, basic Kubernetes Network
Policies, and high-performance service load balancing
• eBPF-based data plane
• socket-based load-balancing instead of iptables
• relies on Azure IPAM (IP Address Management on Azure)
control plane
• therefore, supported by Azure CNI and Azure CNI Overlay
© white duck GmbH 2022
Azure CNI & Cilium
© white duck GmbH 2022
eBPF big picture
https://ebpf.io/what-is-ebpf
Cilium benefits
• faster service routing
• more efficient network policy enforcement
• better observability of cluster traffic
• support for larger clusters
• Cilium ecosystem
© white duck GmbH 2022
Current limitations
• only supports Linux
• CiliumNetworkPolicy currently not supported
• Cilium L7 policy enforcement is disabled
• Hubble is disabled
• advanced Cilium configurations require BYO CNI
© white duck GmbH 2022
PRIVATE API SERVER OPTIONS
© white duck GmbH 2022
API server private endpoint connection
• based on Private Link Endpoints
• exposes the API server endpoint into a subnet
• you can still expose services externally
• things to think about
• DNS resolution
• DNS Resolver
• Public DNS entry
• private/self-hosted Build Agent (or GitOps)
• “az aks command invoke” can be helpful as well
• https://learn.microsoft.com/azure/aks/private-clusters
© white duck GmbH 2022
API server vNet integration
• still preview!
• API server is exposed into a delegated subnet
• enables network communication between the API server and the
cluster nodes
• without vNet integration this is done via a private tunnel between the
control plane and nodes (Konnectivity)
• supports private and public clusters
• no Private Link Endpoint required
• https://learn.microsoft.com/azure/aks/api-server-vnet-integration
© white duck GmbH 2022
Questions?
© white duck GmbH 2022
Nico Meisenzahl (Head of DevOps Consulting and Operations,
Cloud Solution Architect, Azure & Developer Technologies MVP, GitLab Hero)
Email: nico.meisenzahl@whiteduck.de
Twitter: @nmeisenzahl
LinkedIn: https://www.linkedin.com/in/nicomeisenzahl/
Philip Welz (Senior Kubernetes & DevOps Engineer,
GitLab Hero, CKA, CKAD & CKS)
Twitter: @philip_welz
LinkedIn: https://www.linkedin.com/in/philip-welz
Slides: https://www.slideshare.net/nmeisenzahl

More Related Content

PDF
Getting Started with Kubernetes
PPTX
PPTX
Comparison of existing cni plugins for kubernetes
PDF
4. CNCF kubernetes Comparison of-existing-cni-plugins-for-kubernetes
PDF
Azure Zürich User Group: Azure Kubernetes Service – more than just a managed ...
PDF
Kubernetes Networking 101 kubecon EU 2022
PPTX
KuberNETes - meetup
PDF
Introduction to Kubernetes Workshop
Getting Started with Kubernetes
Comparison of existing cni plugins for kubernetes
4. CNCF kubernetes Comparison of-existing-cni-plugins-for-kubernetes
Azure Zürich User Group: Azure Kubernetes Service – more than just a managed ...
Kubernetes Networking 101 kubecon EU 2022
KuberNETes - meetup
Introduction to Kubernetes Workshop

Similar to Festive Tech Calendar: Festive time with AKS networking (20)

PDF
Overlay/Underlay - Betting on Container Networking
PDF
Best Practices with Azure Kubernetes Services
PDF
Packet walks in_kubernetes-v4
PDF
Demonstrating 100 Gbps in and out of the Clouds
PDF
All Things Cloud Native Meetup: Azure Kubernetes Service Basics
PDF
Azure meetup cloud native concepts - may 28th 2018
ODP
Network services on Kubernetes on premise
PPTX
Introduction to Kubernetes
PDF
A quick introduction to AKS
PDF
prodops.io k8s presentation
PDF
Kubernetes at Datadog Scale
PDF
Introduction to EKS (AWS User Group Slovakia)
PPTX
Global azurebootcamp2019vancouver aks_presentation_by_ashprasad_arjavprasad
PDF
Webinar- Tea for the Tillerman
PDF
Elastic Kubernetes Services (EKS)
PDF
Container network security
PPTX
Introduction to the Container Network Interface (CNI)
PDF
Builders' Day- Mastering Kubernetes on AWS
PDF
Docker clusters on AWS with Amazon ECS and Kubernetes
PDF
Container Network Interface: Network Plugins for Kubernetes and beyond
Overlay/Underlay - Betting on Container Networking
Best Practices with Azure Kubernetes Services
Packet walks in_kubernetes-v4
Demonstrating 100 Gbps in and out of the Clouds
All Things Cloud Native Meetup: Azure Kubernetes Service Basics
Azure meetup cloud native concepts - may 28th 2018
Network services on Kubernetes on premise
Introduction to Kubernetes
A quick introduction to AKS
prodops.io k8s presentation
Kubernetes at Datadog Scale
Introduction to EKS (AWS User Group Slovakia)
Global azurebootcamp2019vancouver aks_presentation_by_ashprasad_arjavprasad
Webinar- Tea for the Tillerman
Elastic Kubernetes Services (EKS)
Container network security
Introduction to the Container Network Interface (CNI)
Builders' Day- Mastering Kubernetes on AWS
Docker clusters on AWS with Amazon ECS and Kubernetes
Container Network Interface: Network Plugins for Kubernetes and beyond
Ad

More from Nico Meisenzahl (20)

PDF
Cloud-Native & Sustainability: How and Why to Build Sustainable Workloads
PDF
Container Day Security: How to Prevent Your Kubernetes Cluster From Being Hacked
PDF
ContainerConf 2022: Hijack Kubernetes
PDF
ContainerConf 2022: Kubernetes is awesome - but...
PDF
KCD Munich 2022: How to Prevent Your Kubernetes Cluster From Being Hacked
PDF
KCD Munich 2022: Hijack a Kubernetes Cluster - a Walkthrough
PDF
Cloud Love Conference: Kubernetes is awesome, but...
PDF
How to Prevent Your Kubernetes Cluster From Being Hacked
PDF
Container Days: Hijack a Kubernetes Cluster - a Walkthrough
PPTX
Hijack a Kubernetes Cluster - a Walkthrough
PDF
Hijack a Kubernetes Cluster - a Walkthrough
PDF
azdevcom - Hijack a Kubernetes Cluster
PDF
Continuous Lifecycle: Enhance Your Compliance and Governance With Policy-Base...
PDF
Continuous Lifecycle: Hijack Kubernetes
PDF
Hijack a Kubernetes Cluster - a Walkthrough
PDF
GitLab Commit: Enhance your Compliance with Policy-Based CI/CD
PDF
Azure Meetup Hamburg: Production-Ready Terraform Deployments on Azure
PDF
Microsoft DevOps Forum 2021 – DevOps & Security
PDF
DevOpsCon Berlin: Helm vs Operators – Do I Need to Decide?
PDF
GitLab Commit DevOps: How GitLab Can Save your Kubernetes environment from Be...
Cloud-Native & Sustainability: How and Why to Build Sustainable Workloads
Container Day Security: How to Prevent Your Kubernetes Cluster From Being Hacked
ContainerConf 2022: Hijack Kubernetes
ContainerConf 2022: Kubernetes is awesome - but...
KCD Munich 2022: How to Prevent Your Kubernetes Cluster From Being Hacked
KCD Munich 2022: Hijack a Kubernetes Cluster - a Walkthrough
Cloud Love Conference: Kubernetes is awesome, but...
How to Prevent Your Kubernetes Cluster From Being Hacked
Container Days: Hijack a Kubernetes Cluster - a Walkthrough
Hijack a Kubernetes Cluster - a Walkthrough
Hijack a Kubernetes Cluster - a Walkthrough
azdevcom - Hijack a Kubernetes Cluster
Continuous Lifecycle: Enhance Your Compliance and Governance With Policy-Base...
Continuous Lifecycle: Hijack Kubernetes
Hijack a Kubernetes Cluster - a Walkthrough
GitLab Commit: Enhance your Compliance with Policy-Based CI/CD
Azure Meetup Hamburg: Production-Ready Terraform Deployments on Azure
Microsoft DevOps Forum 2021 – DevOps & Security
DevOpsCon Berlin: Helm vs Operators – Do I Need to Decide?
GitLab Commit DevOps: How GitLab Can Save your Kubernetes environment from Be...
Ad

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
Diabetes mellitus diagnosis method based random forest with bat algorithm
Building Integrated photovoltaic BIPV_UPV.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools

Festive Tech Calendar: Festive time with AKS networking

  • 1. Festive time with AKS networking Festive Tech Calendar 2022
  • 2. Who we are © white duck GmbH 2022 Nico Meisenzahl (Head of DevOps Consulting and Operations, Cloud Solution Architect, Azure & Developer Technologies MVP, GitLab Hero) Email: nico.meisenzahl@whiteduck.de Twitter: @nmeisenzahl LinkedIn: https://www.linkedin.com/in/nicomeisenzahl/ Philip Welz (Senior Kubernetes & DevOps Engineer, GitLab Hero, CKA, CKAD & CKS) Twitter: @philip_welz LinkedIn: https://www.linkedin.com/in/philip-welz
  • 3. Agenda • Intro to AKS networking • Control plane networking options • Cilium-powered data plane • Private API server options © white duck GmbH 2022
  • 4. INTRO TO AKS NETWORKING © white duck GmbH 2022
  • 5. The layers of AKS networking • pod-to-pod traffic • pod-to-service networking • in-cluster DNS • cluster ingress/egress traffic • traffic between K8s control and data plane • API-server access © white duck GmbH 2022
  • 6. What we are focusing on today • pod-to-pod traffic • pod-to-service networking • in-cluster DNS • cluster ingress/egress traffic • traffic between K8s control and data plane • API-server access © white duck GmbH 2022
  • 7. CONTROL PLANE NETWORKING OPTIONS © white duck GmbH 2022
  • 8. Cluster-wide east-west traffic • mandatory to get a functioning Kubernetes cluster • pod-to-pod communication • there are multiple implementations with AKS • you have the choice J © white duck GmbH 2022
  • 9. Container Network Interface (CNI) • Container Network Interface (CNI) is • an abstraction layer • a vendor-neutral specification • used by Kubernetes and others (Mesos, CloudFoundry) • vendor implementations are called plugins • https://github.com/containernetworking/cni © white duck GmbH 2022
  • 10. Kubenet • very basic & simple plugin implementation • typically used with single-node or cloud provider that sets up routing rules for communication between nodes • itself does not implement advanced features such as cross-node networking or network policies • Linux only • no Windows nodes/pods © white duck GmbH 2022
  • 11. Kubenet & Azure Kubernetes Service • requires outbound internet connectivity • one cluster per subnet • max of 400 nodes (due to UDR limit) • additional hop is required in the design of Kubenet • no direct pod addressing/routing • no support for • Azure Network Policies • Calico Network Policies support Kubenet • Virtual node addon (ACI) • https://learn.microsoft.com/azure/aks/configure-kubenet © white duck GmbH 2022
  • 12. Kubenet & Azure Kubernetes Service © white duck GmbH 2022
  • 13. When to use Kubenet with AKS • you require dual-stack (IPv4/IPv6) • most of the pod communication is within the cluster • you don't need advanced AKS features • (you have limited IP address space) © white duck GmbH 2022
  • 14. CNI & Azure Kubernetes Service • you have further options … • Azure CNI • with dynamic allocation of IP addresses • with advanced subnet support • Azure CNI Overlay (preview) • the better Kubenet • Bring-your-own CNI © white duck GmbH 2022
  • 15. Azure CNI • flexible • supports all AKS features and use-cases • got even more flexible with dynamic allocation and advanced subnet support • latter can fix issues with IP address planning • https://learn.microsoft.com/azure/aks/configure-azure-cni © white duck GmbH 2022
  • 16. Azure CNI © white duck GmbH 2022
  • 17. When to use Azure CNI • most of the time: the preferred way • pod communication is also with resources outside of the cluster • you need AKS advanced features • (you have available IP address space) © white duck GmbH 2022
  • 18. Azure CNI Overlay • still preview! • currently only available in • North Central US • West Central US • the better Kubenet (when GA) • up to 1000 nodes • no performance degrade • full support for Network Policies • still Linux only • no support for some advanced features like virtual node • https://learn.microsoft.com/azure/aks/azure-cni-overlay © white duck GmbH 2022
  • 19. Azure CNI Overlay © white duck GmbH 2022
  • 20. When to use Azure CNI Overlay • you would like to scale but have limited IP address spaces • most of the pod communication is within the cluster • you want to use Kubernetes Network Policies • you don't need advanced AKS features © white duck GmbH 2022
  • 21. Bring-your-own CNI • full flexibility • deploy your CNI plugin of choice • no support by Azure on CNI related issues • limitations very based on the chosen plugin • https://learn.microsoft.com/azure/aks/use-byo-cni © white duck GmbH 2022
  • 22. CILIUM-POWERED DATA PLANE © white duck GmbH 2022
  • 23. Azure CNI powered by Cilium • still preview! • managed Cilium offering • offers Pod networking, basic Kubernetes Network Policies, and high-performance service load balancing • eBPF-based data plane • socket-based load-balancing instead of iptables • relies on Azure IPAM (IP Address Management on Azure) control plane • therefore, supported by Azure CNI and Azure CNI Overlay © white duck GmbH 2022
  • 24. Azure CNI & Cilium © white duck GmbH 2022
  • 26. Cilium benefits • faster service routing • more efficient network policy enforcement • better observability of cluster traffic • support for larger clusters • Cilium ecosystem © white duck GmbH 2022
  • 27. Current limitations • only supports Linux • CiliumNetworkPolicy currently not supported • Cilium L7 policy enforcement is disabled • Hubble is disabled • advanced Cilium configurations require BYO CNI © white duck GmbH 2022
  • 28. PRIVATE API SERVER OPTIONS © white duck GmbH 2022
  • 29. API server private endpoint connection • based on Private Link Endpoints • exposes the API server endpoint into a subnet • you can still expose services externally • things to think about • DNS resolution • DNS Resolver • Public DNS entry • private/self-hosted Build Agent (or GitOps) • “az aks command invoke” can be helpful as well • https://learn.microsoft.com/azure/aks/private-clusters © white duck GmbH 2022
  • 30. API server vNet integration • still preview! • API server is exposed into a delegated subnet • enables network communication between the API server and the cluster nodes • without vNet integration this is done via a private tunnel between the control plane and nodes (Konnectivity) • supports private and public clusters • no Private Link Endpoint required • https://learn.microsoft.com/azure/aks/api-server-vnet-integration © white duck GmbH 2022
  • 31. Questions? © white duck GmbH 2022 Nico Meisenzahl (Head of DevOps Consulting and Operations, Cloud Solution Architect, Azure & Developer Technologies MVP, GitLab Hero) Email: nico.meisenzahl@whiteduck.de Twitter: @nmeisenzahl LinkedIn: https://www.linkedin.com/in/nicomeisenzahl/ Philip Welz (Senior Kubernetes & DevOps Engineer, GitLab Hero, CKA, CKAD & CKS) Twitter: @philip_welz LinkedIn: https://www.linkedin.com/in/philip-welz Slides: https://www.slideshare.net/nmeisenzahl