Skip to content
Snippets Groups Projects
Commit 06cff8e9 authored by eedugon's avatar eedugon Committed by GitHub
Browse files

namespace has to be kube-system

for service discovery to work within prometheus configuration (ServiceMonitor k8s-app) these service and endpoints should belong to kube-system namespace. Otherwise the service monitor won't fetch it.
parent 2e67b408
No related branches found
No related tags found
No related merge requests found
apiVersion: v1
kind: Service
metadata:
namespace: kube-system
name: kube-controller-manager-prometheus-discovery
labels:
k8s-app: kube-controller-manager
......@@ -16,6 +17,7 @@ spec:
apiVersion: v1
kind: Endpoints
metadata:
namespace: kube-system
name: kube-controller-manager-prometheus-discovery
labels:
k8s-app: kube-controller-manager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment