apiVersion: v1 kind: Service metadata: name: etcd labels: instance-type: etcd-pod spec: ports: - name: "http-etcd-client" port: 2379 - name: "http-etcd-server" port: 2380 - name: "http-4001" port: 4001 selector: instance-type: etcd-pod clusterIP: None