# k8s_examples_etcd-discovery-service.yaml
kind: Service
apiVersion: v1
metadata:
  name: etcd-discovery
  labels:
    name: etcd-discovery
spec:
  ports:
  - protocol: TCP
    port: 2379
    targetPort: 2379
    nodePort: 0
  selector:
    name: etcd-discovery
  sessionAffinity: None
  type: ClusterIP
status:
  loadBalancer: {}