apiVersion: v1
kind: Service
metadata:
  name: etcd
  namespace: kube-system
  labels:
    # this label is used to indicate that it should be scraped by prometheus
    k8s-app: etcd
spec:
  selector:
    k8s-app: etcd
  ports:
  - name: etcd
    port: 2379
    protocol: TCP
