apiVersion: v1
kind: Pod
metadata:
  labels:
    k8s-app: etcd-manager-events
  name: etcd-manager-events
  namespace: kube-system
spec:
  containers:
  - args:
    - --log-file=/var/log/etcd.log
    - --also-stdout
    - /ko-app/etcd-manager
    - --backup-store=memfs://clusters.example.com/minimal-etcd.example.com/backups/etcd/events
    - --client-urls=https://__name__:4002
    - --cluster-name=etcd-events
    - --containerized=true
    - --dns-suffix=.internal.minimal-etcd.example.com
    - --grpc-port=3997
    - --peer-urls=https://__name__:2381
    - --quarantine-client-urls=https://__name__:3995
    - --v=6
    - --volume-name-tag=k8s.io/etcd/events
    - --volume-provider=aws
    - --volume-tag=k8s.io/etcd/events
    - --volume-tag=k8s.io/role/control-plane=1
    - --volume-tag=kubernetes.io/cluster/minimal-etcd.example.com=owned
    command:
    - /go-runner
    env:
    - name: AWS_REGION
      value: us-test-1
    - name: ETCD_MANAGER_DAILY_BACKUPS_RETENTION
      value: 30d
    - name: ETCD_MANAGER_HOURLY_BACKUPS_RETENTION
      value: 1d
    image: gcr.io/k8s-staging-etcdadm/etcd:v20210430-v0.1.3-739-g7da12acc
    name: etcd-manager
    resources:
      requests:
        cpu: 200m
        memory: 100Mi
    securityContext:
      privileged: true
    volumeMounts:
    - mountPath: /rootfs
      name: rootfs
    - mountPath: /run
      name: run
    - mountPath: /etc/kubernetes/pki/etcd-manager
      name: pki
    - mountPath: /opt
      name: opt
    - mountPath: /var/log/etcd.log
      name: varlogetcd
  hostNetwork: true
  hostPID: true
  initContainers:
  - args:
    - --target-dir=/opt/kops-utils/
    - --src=/ko-app/kops-utils-cp
    command:
    - /ko-app/kops-utils-cp
    image: registry.k8s.io/kops/kops-utils-cp:1.34.0-beta.1
    name: kops-utils-cp
    resources: {}
    volumeMounts:
    - mountPath: /opt
      name: opt
  - args:
    - --target-dir=/opt/etcd-v3.6.99
    - --src=/usr/local/bin/etcd
    - --src=/usr/local/bin/etcdctl
    command:
    - /opt/kops-utils/kops-utils-cp
    image: gcr.io/etcd-development/etcd:v3.6.99
    name: init-etcd-3-6-99
    resources: {}
    volumeMounts:
    - mountPath: /opt
      name: opt
  priorityClassName: system-cluster-critical
  tolerations:
  - key: CriticalAddonsOnly
    operator: Exists
  volumes:
  - hostPath:
      path: /
      type: Directory
    name: rootfs
  - hostPath:
      path: /run
      type: DirectoryOrCreate
    name: run
  - hostPath:
      path: /etc/kubernetes/pki/etcd-manager-events
      type: DirectoryOrCreate
    name: pki
  - emptyDir: {}
    name: opt
  - hostPath:
      path: /var/log/etcd-events.log
      type: FileOrCreate
    name: varlogetcd
status: {}
