apiVersion: apps/v1
kind: Deployment
metadata:
  name: etcd
  labels:
    app: etcd
spec:
  replicas: 1
  selector:
    matchLabels:
      app: etcd
  template:
    metadata:
      labels:
        app: etcd
    spec:
      containers:
        - args:
          - etcd
          - --listen-client-urls=http://0.0.0.0:2379
          - --advertise-client-urls=http://$ADVERTISE_IP:2379
          env:
          - name: ADVERTISE_IP
            valueFrom:
              fieldRef:
                fieldPath: status.podIP
          image: quay.io/coreos/etcd:latest
          name: etcd
          ports:
          - containerPort: 2379
          - containerPort: 2380
          resources: {}
      restartPolicy: Always
status: {}
