This commit is contained in:
Ruslan Piatrovich
2024-12-13 14:22:21 +03:00
parent be33aa549e
commit f815f629ec
871 changed files with 193 additions and 138036 deletions
@@ -0,0 +1,24 @@
apiVersion: "cilium.io/v2"
kind: CiliumClusterwideNetworkPolicy
metadata:
name: "deny-cross-namespace-traffic-with-labeled-exceptions"
spec:
description: "Cluster-wide policy to deny cross-namespace traffic, except for specific namespaces"
endpointSelector:
matchExpressions:
- key: "kubernetes.io/metadata.name"
operator: NotIn
values:
- kube-system
- key: "heritage"
operator: NotIn
values:
- deckhouse
ingress:
- fromEntities:
- cluster
- fromEndpoints:
- matchLabels:
kubernetes.io/metadata.name: kube-system
- matchLabels:
heritage: deckhouse