Skip to content

Commit 0947d3e

Browse files
Merge pull request #1198 from petr-muller/ota-1521-add-deny-all-network-policy
OTA-1521: Add a default-deny network policy for CVO namespace
2 parents 2d837d9 + 07c6b5c commit 0947d3e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: NetworkPolicy
3+
metadata:
4+
# This NetworkPolicy is used to deny all ingress and egress traffic by default in this namespace,
5+
# serving as a baseline. At the moment no other Network Policy should be needed:
6+
# - CVO is a host-networked Pod, so it is not affected by network policies
7+
# - Bare `version` Pods spawned by CVO do not require any network communication
8+
name: default-deny
9+
namespace: openshift-cluster-version
10+
spec:
11+
# Match all pods in the namespace
12+
podSelector: {}
13+
policyTypes:
14+
- Ingress
15+
- Egress

0 commit comments

Comments
 (0)