Skip to content

OTA-1521: Add a default-deny network policy for CVO namespace #1198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions install/0000_00_cluster-version-operator_02_networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
# This NetworkPolicy is used to deny all ingress and egress traffic by default in this namespace,
# serving as a baseline. At the moment no other Network Policy should be needed:
# - CVO is a host-networked Pod, so it is not affected by network policies
# - Bare `version` Pods spawned by CVO do not require any network communication
name: default-deny
namespace: openshift-cluster-version
spec:
# Match all pods in the namespace
podSelector: {}
policyTypes:
- Ingress
- Egress