Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingress: Update docs with network policy example
This is to extend the existing basic ingress docs with external lockdown CCNP, while still allows in-cluster traffic to Ingress LB IP. Relates: #28126 Signed-off-by: Tam Mach <tam.mach@cilium.io>
- Loading branch information
Showing
4 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
examples/kubernetes/servicemesh/policy/allow-ingress-cidr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumClusterwideNetworkPolicy | ||
metadata: | ||
name: "allow-cidr" | ||
spec: | ||
description: "Allow all the traffic originating from a specific CIDR" | ||
endpointSelector: {} | ||
ingress: | ||
- fromCIDRSet: | ||
# Please update the CIDR to match your environment | ||
- cidr: 172.18.0.1/32 |
10 changes: 10 additions & 0 deletions
10
examples/kubernetes/servicemesh/policy/external-lockdown.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumClusterwideNetworkPolicy | ||
metadata: | ||
name: "external-lockdown" | ||
spec: | ||
description: "Block all the traffic originating from outside of the cluster" | ||
endpointSelector: {} | ||
ingress: | ||
- fromEntities: | ||
- cluster |