Skip to content

Commit 482a36c

Browse files
committed
align policy types in network policy yaml example
Signed-off-by: Renuka Devi Rajendran <[email protected]>
1 parent 7cbfc59 commit 482a36c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

versioned_docs/version-v1.6/networking/kubeovn-vm-isolation.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ The following virtual machines are created in the `default` namespace and are at
191191
- from:
192192
- ipBlock:
193193
cidr: 172.20.10.0/30
194-
policyTypes:
195-
- Ingress
196-
- Egress
194+
policyTypes:
195+
- Ingress
196+
- Egress
197197
```
198198

199199
- Example 2: VM1 and VM2 are allowed to communicate with each other and with other virtual machines in the subnet `172.20.10.0/24`. However, other virtual machines in that subnet cannot communicate with VM1, VM2, and each other. This is because the ingress policy only allows traffic originating from `172.20.10.0/30`.
@@ -209,8 +209,8 @@ The following virtual machines are created in the `default` namespace and are at
209209
- from:
210210
- ipBlock:
211211
cidr: 172.20.10.0/30
212-
policyTypes:
213-
- Ingress
212+
policyTypes:
213+
- Ingress
214214
```
215215

216216
- Example 3: VM1 and VM2 are allowed to communicate with each other, but not with other virtual machines in the subnet `172.20.10.0/24`. The other virtual machines in the same subnet can communicate with VM1 and VM2. This is because the egress policy allows traffic to be sent to `172.20.10.0/30`.
@@ -226,8 +226,8 @@ The following virtual machines are created in the `default` namespace and are at
226226
- to:
227227
- ipBlock:
228228
cidr: 172.20.10.0/30
229-
policyTypes:
230-
- egress
229+
policyTypes:
230+
- egress
231231
```
232232

233233
- Example 4: VM2 is allowed to communicate with VM1, but not with other virtual machines in the subnet `172.20.10.0/24`. This is because a pod selector label is applied to VM2. All other virtual machines in the same subnet can communicate with VM1 and each other.
@@ -250,7 +250,7 @@ The following virtual machines are created in the `default` namespace and are at
250250
- from:
251251
- ipBlock:
252252
cidr: 172.20.10.0/30
253-
policyTypes:
254-
- Ingress
255-
- Egress
253+
policyTypes:
254+
- Ingress
255+
- Egress
256256
```

0 commit comments

Comments
 (0)