[skip e2e]Add mixcoord component for chaos test (#18712)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/18715/head
zhuwenxing 2022-08-18 16:24:51 +08:00 committed by GitHub
parent b62cb82ebe
commit 29b3c35b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,17 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos
metadata:
name: test-mixcoord-pod-failure
namespace: chaos-testing
spec:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: milvus-chaos
app.kubernetes.io/component: mixcoord
mode: fixed
value: "1"
action: pod-failure
duration: 2m
gracePeriod: 0

View File

@ -0,0 +1,23 @@
kind: Schedule
apiVersion: chaos-mesh.org/v1alpha1
metadata:
name: test-mixcoord-pod-kill
namespace: chaos-testing
spec:
schedule: '*/5 * * * * *'
startingDeadlineSeconds: 60
concurrencyPolicy: Forbid
historyLimit: 1
type: PodChaos
podChaos:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: milvus-chaos
app.kubernetes.io/name: milvus
app.kubernetes.io/component: mixcoord
mode: fixed
value: "1"
action: pod-kill
gracePeriod: 0