apiVersion: v1
kind: Service
# NOTE: Fix kube-controller-manager
# SOURCE: https://github.com/coreos/prometheus-operator/issues/1859#issuecomment-437740104
metadata:
  labels:
    k8s-app: kube-scheduler
  name: kube-scheduler-prometheus-discovery
  namespace: kube-system
spec:
  # ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster. This is the default ServiceType.
  type: ClusterIP
  clusterIP: None
  ports:
  - name: http-metrics
    port: 10251
    targetPort: 10251
    protocol: TCP
  selector:
    component: kube-scheduler
