Skip to content
Snippets Groups Projects
Verified Commit 55cd2fd6 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(shared): Add monitoring rule for database network policy

This patch allows to monitor Postgresql Instances by allowing the
monitoring namespace to access a exporter container port by default for
spilo instances.
parent 68c6b828
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,16 @@ spec: ...@@ -20,6 +20,16 @@ spec:
protocol: TCP protocol: TCP
- port: 8080 - port: 8080
protocol: TCP protocol: TCP
- from:
- namespaceSelector:
matchLabels:
monitoring.shivering-isles.com/network-access-required: "true"
podSelector:
matchLabels:
app.kubernetes.io/name: prometheus
ports:
- port: 9187
protocol: TCP
podSelector: podSelector:
matchLabels: matchLabels:
application: spilo application: spilo
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