github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/chaos/manifests/cases.yaml (about) 1 apiVersion: batch/v1 2 kind: Job 3 metadata: 4 name: chaos-test-case 5 spec: 6 template: 7 spec: 8 containers: 9 - name: chaos-test-case 10 image: dm:chaos # build this image in GitHub action workflow 11 imagePullPolicy: IfNotPresent 12 env: 13 - name: MY_POD_NAME 14 valueFrom: 15 fieldRef: 16 fieldPath: metadata.name 17 - name: MY_POD_NAMESPACE 18 valueFrom: 19 fieldRef: 20 fieldPath: metadata.namespace 21 ports: 22 - containerPort: 80 23 name: chaos-test-case 24 command: 25 - "/chaos-case" 26 - "--config-dir=/conf" # we put config files into `/conf` when building the docker image 27 - "--duration=20m" 28 restartPolicy: Never 29 backoffLimit: 0 # fail immediately