apiVersion: v1 kind: Pod metadata: name: etcd-single-node spec: containers:
- name: etcd
image: quay.io/coreos/etcd:v3.4.13
command:
- ”/usr/local/bin/etcd” args:
- ”–name=etcd-01”
- ”–listen-client-urls=http://0.0.0.0:2379”
- ”–advertise-client-urls=http://0.0.0.0:2379”
- ”–listen-peer-urls=http://0.0.0.0:2380”
- ”–initial-advertise-peer-urls=http://0.0.0.0:2380”
- ”–initial-cluster=etcd-01=http://0.0.0.0:2380”
- ”–initial-cluster-token=my-etcd-cluster-token”
- ”–initial-cluster-state=new” ports:
- containerPort: 2379 name: client-port protocol: TCP
- containerPort: 2380 name: peer-port protocol: TCP volumeMounts:
- name: etcd-data mountPath: /var/lib/etcd volumes:
- name: etcd-data emptyDir: {}




