1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
apiVersion: v1 kind: Service metadata: name: etcd labels: instance-type: etcd-pod spec: ports: - name: "etcd-client" port: 2379 - name: "etcd-server" port: 2380 - name: "4001" port: 4001 selector: instance-type: etcd-pod clusterIP: None