[skip ci]Add network partition chaos for all pods (#8247)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/8255/head
zhuwenxing 2021-09-18 19:08:07 +08:00 committed by GitHub
parent f203f750aa
commit 56b3b2ed92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 206 additions and 7 deletions

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-datacoord-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: datacoord
mode: one

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-datanode-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: datanode
mode: one

View File

@ -0,0 +1,24 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-etcd-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: etcd
mode: one

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-indexcoord-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: indexcoord
mode: one

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-indexnode-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: indexnode
mode: one

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-minio-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
release: milvus-chaos
app: minio
mode: one

View File

@ -10,7 +10,7 @@ spec:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-milvus
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
@ -19,7 +19,7 @@ spec:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-milvus
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: proxy
mode: one

View File

@ -10,7 +10,7 @@ spec:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: milvus-chaos
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
@ -19,7 +19,7 @@ spec:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: milvus-chaos
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: pulsar
mode: one
mode: one

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-querycoord-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: etcd
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: querycoord
mode: one

View File

@ -0,0 +1,25 @@
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: test-querynode-network-partition
namespace: chaos-testing
spec:
action: partition
mode: all
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
target:
selector:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: querynode
mode: one

View File

@ -10,7 +10,7 @@ spec:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: milvus-chaos
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
duration: 5m
direction: both
@ -19,7 +19,7 @@ spec:
namespaces:
- chaos-testing
labelSelectors:
app.kubernetes.io/instance: milvus-chaos
app.kubernetes.io/instance: chaos-testing
app.kubernetes.io/name: milvus
component: rootcoord
mode: one