diff --git a/manifests/monitoringservice.yaml b/manifests/monitoringservice.yaml index 44b880fa38565e786cb901e53b875a9946da25a0..f7ebdf7ac79e928b9b66dd24c679905edab9d8da 100644 --- a/manifests/monitoringservice.yaml +++ b/manifests/monitoringservice.yaml @@ -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