Files
kube-prometheus/manifests/k8s/kube-scheduler-bootkube-vagrant-multi.yaml
Frederic Branczyk 1795a62841 manifests: add headless services for k8s components
This way they are discoverable via the kubernetes endpoints discovery of
Prometheus.
2016-11-02 10:31:13 +01:00

19 lines
337 B
YAML

apiVersion: v1
kind: Service
metadata:
name: kube-scheduler-prometheus-discovery
labels:
k8s-app: kube-scheduler
annotations:
prometheus.io/scrape: 'true'
spec:
selector:
k8s-app: kube-scheduler
type: ClusterIP
clusterIP: None
ports:
- name: prometheus
port: 10251
targetPort: 10251
protocol: TCP