add namespace and refine ingress rules in CiliumNetworkPolicy for improved traffic segmentation
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m3s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m3s
This commit is contained in:
@@ -3,7 +3,7 @@ apiVersion: cilium.io/v2
|
|||||||
kind: CiliumNetworkPolicy
|
kind: CiliumNetworkPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: default-deny-all
|
name: default-deny-all
|
||||||
|
namespace: escapefromteacher
|
||||||
spec:
|
spec:
|
||||||
endpointSelector: {}
|
endpointSelector: {}
|
||||||
ingress:
|
ingress:
|
||||||
@@ -21,9 +21,10 @@ spec:
|
|||||||
matchLabels:
|
matchLabels:
|
||||||
app: escape-game
|
app: escape-game
|
||||||
ingress:
|
ingress:
|
||||||
# Allow HTTP traffic from anywhere (for user access)
|
|
||||||
- fromEndpoints:
|
- fromEndpoints:
|
||||||
- {}
|
- matchLabels:
|
||||||
|
io.cilium.k8s.policy.namespace: traefik
|
||||||
|
name: traefik
|
||||||
toPorts:
|
toPorts:
|
||||||
- ports:
|
- ports:
|
||||||
- port: "8080"
|
- port: "8080"
|
||||||
|
|||||||
Reference in New Issue
Block a user