apiVersion: v1
kind: Pod
metadata:
  namespace: kube-system
  name: tidb-operator-e2e
spec:
  nodeName: kube-master
  containers:
  - name: tidb-operator-e2e
    image: localhost:5000/pingcap/tidb-operator-e2e:latest
    volumeMounts:
      - name: logdir
        mountPath: /logdir
    env:
    - name: OPERATOR_IMAGE
      value: localhost:5000/pingcap/tidb-operator:latest
    - name: BACKUP_IMAGE
      value: localhost:5000/pingcap/tidb-backup:latest
    - name: GINKGO_NODES
      value: "15"
    command:
    - /usr/local/bin/run_e2e
    # Use this command instead of the command of the previous line to run e2e test only focus on one spec
    # command: ["sh","-c","/usr/local/bin/ginkgo --v --trace --failFast --focus=Sync /usr/local/bin/e2e.test"]
  restartPolicy: Never
  volumes:
  - name: logdir
    hostPath:
      path: /logdir
