Skip to content
Snippets Groups Projects
Commit fd843b45 authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Add NetworkPolicy to monitoringservice

parent a3700c1e
No related branches found
No related tags found
1 merge request!54Release 2.0.0
......@@ -39,6 +39,9 @@ spec:
- name: influxdb
containerPort: 9009
protocol: TCP
- name: postgre
containerPort: 8812
protocol: TCP
env:
- name: QDB_CAIRO_COMMIT_LAG
value: "1000"
......@@ -109,4 +112,30 @@ spec:
- name: influxdb
protocol: TCP
port: 9009
targetPort: 9009
\ No newline at end of file
targetPort: 9009
- name: postgre
protocol: TCP
port: 8812
targetPort: 8812
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: access-monitoring
spec:
podSelector:
matchLabels:
app: monitoringservice
ingress:
- from: []
ports:
- port: 7070
- port: 8812
- from:
- podSelector:
matchLabels:
app: monitoringservice
ports:
- port: 9009
- port: 9000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment