apiVersion: v1
kind: Service
metadata:
  name: etcd-prometheus-discovery
  namespace: kube-system
  labels:
    k8s-app: kube-etcd
spec:
  type: ClusterIP
  selector:
    app: etcd
    etcd_cluster: kube-etcd
  ports:
  - name: metrics
    port: 2379
    targetPort: 2379
    protocol: TCP
