apiVersion: apps/v1
kind: Deployment
metadata:
  name: etcd-restore-operator
  labels:
    app: etcd-restore-operator
spec:
  selector:
    matchLabels:
      app: etcd-restore-operator
  replicas: 1
  template:
    metadata:
      labels:
        app: etcd-restore-operator
    spec:
      serviceAccount: etcd-operator
      containers:
      - name: etcd-restore-operator
        image: hub.byted.org/infcprelease/etcd-operator:latest
        imagePullPolicy: Always
        command:
        - etcd-restore-operator
        env:
        - name: MY_POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: MY_POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
