Skip to content
Merged
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
3 changes: 3 additions & 0 deletions assets/templates/diskmaker-discovery-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: diskmaker-discovery
openshift.storage.network-policy.lso.dns: allow
openshift.storage.network-policy.lso.api-server: allow
openshift.storage.network-policy.lso.diskmaker-metrics: allow
spec:
containers:
- args:
Expand Down
3 changes: 3 additions & 0 deletions assets/templates/diskmaker-manager-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: diskmaker-manager
openshift.storage.network-policy.lso.dns: allow
openshift.storage.network-policy.lso.api-server: allow
openshift.storage.network-policy.lso.diskmaker-metrics: allow
spec:
containers:
- args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
name: local-storage-operator
openshift.storage.network-policy.lso.dns: allow
openshift.storage.network-policy.lso.api-server: allow
openshift.storage.network-policy.lso.operator-metrics: allow
spec:
serviceAccountName: local-storage-operator
priorityClassName: openshift-user-critical
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: lso-allow-egress-to-api-server
annotations:
include.release.openshift.io/hypershift: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
capability.openshift.io/name: Storage
spec:
podSelector:
matchLabels:
openshift.storage.network-policy.lso.api-server: allow
egress:
- ports:
- protocol: TCP
port: 6443
policyTypes:
- Egress
29 changes: 29 additions & 0 deletions config/manifests/stable/network-policy-allow-egress-to-dns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: lso-allow-egress-to-dns
annotations:
include.release.openshift.io/hypershift: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
capability.openshift.io/name: Storage
spec:
podSelector:
matchLabels:
openshift.storage.network-policy.lso.dns: allow
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-dns
podSelector:
matchLabels:
dns.operator.openshift.io/daemonset-dns: default
ports:
- protocol: TCP
port: dns-tcp
- protocol: UDP
port: dns
policyTypes:
- Egress
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: lso-allow-ingress-to-diskmaker-metrics
annotations:
include.release.openshift.io/hypershift: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
capability.openshift.io/name: Storage
spec:
podSelector:
matchLabels:
openshift.storage.network-policy.lso.diskmaker-metrics: allow
ingress:
- ports:
- protocol: TCP
port: 8383
- protocol: TCP
port: 9393
policyTypes:
- Ingress
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: lso-allow-ingress-to-operator-metrics
annotations:
include.release.openshift.io/hypershift: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
capability.openshift.io/name: Storage
spec:
podSelector:
matchLabels:
openshift.storage.network-policy.lso.operator-metrics: allow
ingress:
- ports:
- protocol: TCP
port: 8080
- protocol: TCP
port: 8081
policyTypes:
- Ingress
15 changes: 15 additions & 0 deletions config/manifests/stable/network-policy-default-deny-all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: lso-default-deny-all
annotations:
include.release.openshift.io/hypershift: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
capability.openshift.io/name: Storage
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress