Skip to content

Commit 18dee2c

Browse files
Merge pull request #253385 from wedaly/azure-cni-cilium-overlay-first
List Azure CNI Overlay first in Cilium docs
2 parents c755edb + bf1fae9 commit 18dee2c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/aks/azure-cni-powered-by-cilium.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ By making use of eBPF programs loaded into the Linux kernel and a more efficient
2929

3030
Azure CNI Powered by Cilium can be deployed using two different methods for assigning pod IPs:
3131

32-
- Assign IP addresses from a virtual network (similar to existing Azure CNI with Dynamic Pod IP Assignment)
33-
3432
- Assign IP addresses from an overlay network (similar to Azure CNI Overlay mode)
3533

34+
- Assign IP addresses from a virtual network (similar to existing Azure CNI with Dynamic Pod IP Assignment)
35+
3636
If you aren't sure which option to select, read ["Choosing a network model to use"](./azure-cni-overlay.md#choosing-a-network-model-to-use).
3737

3838
## Network Policy Enforcement
@@ -68,7 +68,22 @@ Azure CNI powered by Cilium currently has the following limitations:
6868
6969
## Create a new AKS Cluster with Azure CNI Powered by Cilium
7070

71-
### Option 1: Assign IP addresses from a virtual network
71+
### Option 1: Assign IP addresses from an overlay network
72+
73+
Use the following commands to create a cluster with an overlay network and Cilium. Replace the values for `<clusterName>`, `<resourceGroupName>`, and `<location>`:
74+
75+
```azurecli-interactive
76+
az aks create -n <clusterName> -g <resourceGroupName> -l <location> \
77+
--network-plugin azure \
78+
--network-plugin-mode overlay \
79+
--pod-cidr 192.168.0.0/16 \
80+
--network-dataplane cilium
81+
```
82+
83+
> [!NOTE]
84+
> The `--network-dataplane cilium` flag replaces the deprecated `--enable-ebpf-dataplane` flag used in earlier versions of the aks-preview CLI extension.
85+
86+
### Option 2: Assign IP addresses from a virtual network
7287

7388
Run the following commands to create a resource group and virtual network with a subnet for nodes and a subnet for pods.
7489

@@ -95,21 +110,6 @@ az aks create -n <clusterName> -g <resourceGroupName> -l <location> \
95110
--network-dataplane cilium
96111
```
97112

98-
> [!NOTE]
99-
> The `--network-dataplane cilium` flag replaces the deprecated `--enable-ebpf-dataplane` flag used in earlier versions of the aks-preview CLI extension.
100-
101-
### Option 2: Assign IP addresses from an overlay network
102-
103-
Use the following commands to create a cluster with an overlay network and Cilium. Replace the values for `<clusterName>`, `<resourceGroupName>`, and `<location>`:
104-
105-
```azurecli-interactive
106-
az aks create -n <clusterName> -g <resourceGroupName> -l <location> \
107-
--network-plugin azure \
108-
--network-plugin-mode overlay \
109-
--pod-cidr 192.168.0.0/16 \
110-
--network-dataplane cilium
111-
```
112-
113113
## Upgrade an existing cluster to Azure CNI Powered by Cilium
114114

115115
> [!NOTE]

0 commit comments

Comments
 (0)