diff --git a/kube/chaos/network-netem.yaml b/kube/chaos/network-netem.yaml index 046f1b164b..4f33f55b4e 100644 --- a/kube/chaos/network-netem.yaml +++ b/kube/chaos/network-netem.yaml @@ -8,9 +8,9 @@ spec: mode: one selector: namespaces: - - default + - starcoin-halley labelSelectors: - "app": "starcoin" + "app": "starcoin-0" delay: latency: "100ms" correlation: "25" diff --git a/kube/chaos/network-partition.yaml b/kube/chaos/network-partition.yaml index 80b1c2ebe7..e76d345d28 100644 --- a/kube/chaos/network-partition.yaml +++ b/kube/chaos/network-partition.yaml @@ -8,7 +8,7 @@ spec: mode: one selector: namespaces: - - default + - starcoin-halley labelSelectors: "app": "starcoin" direction: to diff --git a/kube/chaos/pod-kill-example.yaml b/kube/chaos/pod-kill-example.yaml index f702f9a168..4a2420592e 100644 --- a/kube/chaos/pod-kill-example.yaml +++ b/kube/chaos/pod-kill-example.yaml @@ -8,7 +8,7 @@ spec: mode: one selector: namespaces: - - default + - starcoin-halley labelSelectors: "app": "starcoin" scheduler: diff --git a/kube/chaos/pod-kill.yaml b/kube/chaos/pod-kill.yaml index a9a63816c4..b8a313a05f 100644 --- a/kube/chaos/pod-kill.yaml +++ b/kube/chaos/pod-kill.yaml @@ -8,8 +8,8 @@ spec: mode: one selector: namespaces: - - default + - starcoin-halley labelSelectors: - "app": "starcoin" + "app": "starcoin-0" scheduler: cron: "@every 20m" diff --git a/kube/chaos/schedule-halley-networkdelay.yaml b/kube/chaos/schedule-halley-networkdelay.yaml new file mode 100644 index 0000000000..85462e5420 --- /dev/null +++ b/kube/chaos/schedule-halley-networkdelay.yaml @@ -0,0 +1,38 @@ +kind: Schedule +apiVersion: chaos-mesh.org/v1alpha1 +metadata: + namespace: starcoin-halley + name: networkdelay +spec: + schedule: '*/15 * * * *' + startingDeadlineSeconds: null + concurrencyPolicy: Forbid + historyLimit: 1 + type: NetworkChaos + networkChaos: + selector: + namespaces: + - starcoin-halley + pods: + starcoin-halley: + - starcoin-0 + - starcoin-1 + - starcoin-2 + mode: one + action: delay + duration: 5m + delay: + latency: 50000ms + correlation: '0' + jitter: 50m + direction: to + target: + selector: + namespaces: + - starcoin-halley + pods: + starcoin-halley: + - starcoin-0 + - starcoin-1 + - starcoin-2 + mode: one diff --git a/kube/chaos/schedule-halley-networkpartition.yaml b/kube/chaos/schedule-halley-networkpartition.yaml new file mode 100644 index 0000000000..d8a10a7c0f --- /dev/null +++ b/kube/chaos/schedule-halley-networkpartition.yaml @@ -0,0 +1,30 @@ +kind: Schedule +apiVersion: chaos-mesh.org/v1alpha1 +metadata: + namespace: starcoin-halley + name: networkpartition +spec: + schedule: '*/30 * * * *' + startingDeadlineSeconds: null + concurrencyPolicy: Forbid + historyLimit: 1000 + type: NetworkChaos + networkChaos: + selector: + namespaces: + - starcoin-halley + pods: + starcoin-halley: + - starcoin-0 + mode: all + action: partition + duration: 5m + direction: to + target: + selector: + namespaces: + - starcoin-halley + pods: + starcoin-halley: + - starcoin-0 + mode: all diff --git a/kube/chaos/schedule-halley-podkill.yaml b/kube/chaos/schedule-halley-podkill.yaml new file mode 100644 index 0000000000..427fe36c5f --- /dev/null +++ b/kube/chaos/schedule-halley-podkill.yaml @@ -0,0 +1,20 @@ +kind: Schedule +apiVersion: chaos-mesh.org/v1alpha1 +metadata: + namespace: starcoin-halley + name: podkill +spec: + schedule: '* */1 * * *' + startingDeadlineSeconds: null + concurrencyPolicy: Forbid + historyLimit: 1 + type: PodChaos + podChaos: + selector: + namespaces: + - starcoin-halley + pods: + starcoin-halley: + - starcoin-1 + mode: all + action: pod-kill diff --git a/kube/chaos/time-chaos.yaml b/kube/chaos/time-chaos.yaml index 301e435fa1..976ed304af 100644 --- a/kube/chaos/time-chaos.yaml +++ b/kube/chaos/time-chaos.yaml @@ -7,7 +7,7 @@ spec: mode: one selector: namespaces: - - default + - starcoin-halley labelSelectors: "app": "starcoin" timeOffset: "-10m"