Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# The openshift-cloud-network-config-controller namespace is created
# via the CNO manifests, but we can't create a default-deny policy
# there and an allow policy here, because the two policies won't be
# applied at the same time. So we create both of them here.
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: default-deny
namespace: openshift-cloud-network-config-controller
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
ingress: []
egress: []
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: cloud-network-config-controller
namespace: openshift-cloud-network-config-controller
spec:
podSelector:
matchLabels:
app: cloud-network-config-controller
policyTypes:
- Egress
egress:
# CNCC needs access to apiserver and cloud APIs, possibly via a proxy... for now we
# just allow all egress.
- {}
4 changes: 4 additions & 0 deletions manifests/0000_70_cluster-network-operator_00_namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ apiVersion: networking.k8s.io/v1
metadata:
name: default-deny
namespace: openshift-network-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/single-node-developer: "true"
spec:
podSelector: {}
policyTypes:
Expand Down