apiVersion: v1
kind: Service
metadata:
  namespace: kube-system
  name: kube-scheduler-prometheus-discovery
  labels:
    component: kube-scheduler
  annotations:
    prometheus.io/scrape: "true"
spec:
  selector:
    component: kube-scheduler
    tier: control-plane
  type: ClusterIP
  ports:
  - port: 10251
    targetPort: 10251
    protocol: TCP
