adding namespace to network policies

This commit is contained in:
2024-06-11 01:21:50 +10:00
parent 7bef9d1419
commit c2e466f43f
10 changed files with 11 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-kube-dns name: egress-kube-dns
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchExpressions: matchExpressions:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-kubeapi name: egress-kubeapi
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-namespace name: egress-namespace
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-nodes name: egress-nodes
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-world-with-lan name: egress-world-with-lan
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-world name: egress-world
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: ingress-namespace name: ingress-namespace
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: ingress-ingress name: ingress-ingress
namespace: ingress-nginx
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:
@@ -35,6 +36,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: egress-ingress name: egress-ingress
namespace: ingress-nginx
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: ingress-nodes name: ingress-nodes
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels:

View File

@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy kind: CiliumClusterwideNetworkPolicy
metadata: metadata:
name: ingress-world name: ingress-world
namespace: kube-system
spec: spec:
endpointSelector: endpointSelector:
matchLabels: matchLabels: