apiVersion: v1 kind: Service metadata: name: etcd spec: ports: - port: 4001 protocol: TCP targetPort: 4001 selector: etcd: "true"