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

fix(goharbor): Fix broken monitoring

This patch adds a new network policy to allow traffic from the
monitoring namespace to access the exporter endpoints. Since it's not
using allow right now, prometheus reports target down.
parent 97bd9a19
No related branches found
No related tags found
No related merge requests found
...@@ -6,5 +6,6 @@ resources: ...@@ -6,5 +6,6 @@ resources:
- repository.yaml - repository.yaml
- release.yaml - release.yaml
- ../../../shared/networkpolicies/allow-from-ingress.yaml - ../../../shared/networkpolicies/allow-from-ingress.yaml
- ../../../shared/networkpolicies/allow-from-monitoring.yaml
patchesStrategicMerge: patchesStrategicMerge:
- networkpolicy.yaml - networkpolicy.yaml
...@@ -7,3 +7,13 @@ spec: ...@@ -7,3 +7,13 @@ spec:
podSelector: podSelector:
matchLabels: matchLabels:
app: harbor app: harbor
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-monitoring
spec:
podSelector:
matchLabels:
app: harbor
release: harbor
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-monitoring
spec:
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
monitoring.shivering-isles.com/network-access-required: "true"
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