2019-12-29 21:21:49 +01:00
|
|
|
# Allow Prometheus to scrape service endpoints
|
2017-11-08 10:35:56 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: kube-controller-manager
|
|
|
|
namespace: kube-system
|
|
|
|
annotations:
|
|
|
|
prometheus.io/scrape: 'true'
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
k8s-app: kube-controller-manager
|
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
protocol: TCP
|
|
|
|
port: 10252
|
|
|
|
targetPort: 10252
|