Skip to content

Commit 4fead55

Browse files
committed
1 parent f08a81a commit 4fead55

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: NetworkPolicy
3+
metadata:
4+
name: default-deny-all-traffic
5+
namespace: {{ .Values.namespace }}
6+
spec:
7+
podSelector: {}
8+
policyTypes:
9+
- Ingress
10+
- Egress
11+
---
12+
apiVersion: networking.k8s.io/v1
13+
kind: NetworkPolicy
14+
metadata:
15+
name: olm-operator
16+
namespace: {{ .Values.namespace }}
17+
spec:
18+
podSelector:
19+
matchLabels:
20+
app: olm-operator
21+
ingress:
22+
- ports:
23+
- protocol: TCP
24+
port: 8080
25+
egress:
26+
- ports:
27+
- protocol: TCP
28+
port: 6443
29+
policyTypes:
30+
- Ingress
31+
- Egress
32+
---
33+
apiVersion: networking.k8s.io/v1
34+
kind: NetworkPolicy
35+
metadata:
36+
name: catalog-operator
37+
namespace: {{ .Values.namespace }}
38+
spec:
39+
podSelector:
40+
matchLabels:
41+
app: catalog-operator
42+
ingress:
43+
- ports:
44+
- protocol: TCP
45+
port: metrics
46+
egress:
47+
- ports:
48+
- protocol: TCP
49+
port: 6443
50+
policyTypes:
51+
- Ingress
52+
- Egress
53+
---
54+
apiVersion: networking.k8s.io/v1
55+
kind: NetworkPolicy
56+
metadata:
57+
name: packageserver
58+
namespace: {{ .Values.namespace }}
59+
spec:
60+
podSelector:
61+
matchLabels:
62+
app: packageserver
63+
ingress:
64+
- ports:
65+
- protocol: TCP
66+
port: {{ .Values.package.service.internalPort }}
67+
policyTypes:
68+
- Ingress
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)