apiVersion: v1 kind: Service metadata: labels: k8s-app: kube-controller-manager name: kube-controller-manager-prometheus-discovery namespace: kube-system spec: clusterIP: None ports: - name: http-metrics port: 10252 targetPort: 10252 selector: k8s-app: kube-controller-manager