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

fix(dns): Fix some remaining issues with monitoring

This patch fixes the current issues with Service Discovery by adding a
port to the service with the correct name for the ServiceMonitor, as
well as adding the missing network policy.
parent 10a70cd5
No related branches found
No related tags found
No related merge requests found
......@@ -182,6 +182,10 @@ spec:
protocol: TCP
port: 80
targetPort: 80
- name: metrics
protocol: TCP
port: 8080
targetPort: 80
---
apiVersion: policy/v1
kind: PodDisruptionBudget
......
......@@ -8,4 +8,7 @@ resources:
- networkpolicy.yaml
- servicemonitor.yaml
- ../../../shared/networkpolicies/allow-from-same-namespace.yaml
- ../../../shared/networkpolicies/allow-from-monitoring.yaml
- ../../../shared/resourcequotas/default.yaml
patchesStrategicMerge:
- networkpolicy-patch.yaml
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-monitoring
spec:
podSelector:
matchExpressions:
- key: app
operator: In
values:
- resolver
\ No newline at end of file
......@@ -10,5 +10,5 @@ spec:
matchLabels:
app: resolver
endpoints:
- port: http
- port: metrics
path: /metrics
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