Skip to content

Commit d85125b

Browse files
committed
re-configured net-pol
1 parent 97cc4bf commit d85125b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

charts/devtron/templates/networkpolicies.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ kind: NetworkPolicy
2828
metadata:
2929
labels:
3030
app: postgresql
31-
name: netpol-devtron-postgress
31+
name: netpol-devtron-postgres
3232
namespace: devtroncd
3333
spec:
3434
policyTypes:
@@ -42,8 +42,8 @@ spec:
4242
- port: 5432
4343
podSelector:
4444
matchLabels:
45-
app: postgresql
46-
release: devtron
45+
app.kubernetes.io/name: postgres
46+
app.kubernetes.io/instance: devtron
4747
---
4848
apiVersion: networking.k8s.io/v1
4949
kind: NetworkPolicy
@@ -231,5 +231,19 @@ spec:
231231
matchLabels:
232232
app.kubernetes.io/name: nats
233233
app.kubernetes.io/instance: devtron-nats
234+
---
235+
apiVersion: networking.k8s.io/v1
236+
kind: NetworkPolicy
237+
metadata:
238+
name: allow-all-ingress-in-devtron
239+
namespace: devtroncd
240+
spec:
241+
podSelector:
242+
matchLabels:
243+
app: devtron
244+
policyTypes:
245+
- Ingress
246+
ingress:
247+
- {}
234248
{{- end }}
235249
{{- end }}

0 commit comments

Comments
 (0)