Skip to content

Commit 69df730

Browse files
Merge pull request #229377 from phealy/patch-2
Add text on required NSG rules to CNI Overlay
2 parents 2f933e4 + 1754ed0 commit 69df730

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

articles/aks/azure-cni-overlay.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ The following are additional factors to consider when planning pods IP address s
6363

6464
* **Kubernetes DNS service IP address**: This is an IP address within the Kubernetes service address range that's used by cluster service discovery. Don't use the first IP address in your address range, as this address is used for the `kubernetes.default.svc.cluster.local` address.
6565

66+
## Network security groups
67+
68+
Pod to pod traffic with Azure CNI Overlay is not encapsulated and subnet [network security group][nsgs] rules are applied. If the subnet NSG contains deny rules that would impact the pod CIDR traffic, make sure the following rules are in place to ensure proper cluster functionality (in addition to all [AKS egress requirements][aks-egress]):
69+
70+
* Traffic from the node CIDR to the node CIDR on all ports and protocols
71+
* Traffic from the node CIDR to the pod CIDR on all ports and protocols (required for service traffic routing)
72+
* Traffic from the pod CIDR to the pod CIDR on all ports and protocols (required for pod to pod and pod to service traffic, including DNS)
73+
74+
Traffic from a pod to any destination outside of the pod CIDR block will utilize SNAT to set the source IP to the IP of the node where the pod is running.
75+
76+
If you wish to restrict traffic between workloads in the cluster, [network policies][aks-network-policies] are the recommended solution.
77+
6678
## Maximum pods per node
6779

6880
You can configure the maximum number of pods per node at the time of cluster creation or when you add a new node pool. The default for Azure CNI Overlay is 30. The maximum value that you can specify in Azure CNI Overlay is 250, and the minimum value is 10. The maximum pods per node value configured during creation of a node pool applies to the nodes in that node pool only.
@@ -148,3 +160,6 @@ To learn how to utilize AKS with your own Container Network Interface (CNI) plug
148160
[az-provider-register]: /cli/azure/provider#az-provider-register
149161
[az-feature-register]: /cli/azure/feature#az-feature-register
150162
[az-feature-show]: /cli/azure/feature#az-feature-show
163+
[aks-egress]: limit-egress-traffic.md
164+
[aks-network-policies]: use-network-policies.md
165+
[nsg]: /azure/virtual-network/network-security-groups-overview

0 commit comments

Comments
 (0)