Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kube/chaos/network-netem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ spec:
mode: one
selector:
namespaces:
- default
- starcoin-halley
labelSelectors:
"app": "starcoin"
"app": "starcoin-0"
delay:
latency: "100ms"
correlation: "25"
Expand Down
2 changes: 1 addition & 1 deletion kube/chaos/network-partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
mode: one
selector:
namespaces:
- default
- starcoin-halley
labelSelectors:
"app": "starcoin"
direction: to
Expand Down
2 changes: 1 addition & 1 deletion kube/chaos/pod-kill-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
mode: one
selector:
namespaces:
- default
- starcoin-halley
labelSelectors:
"app": "starcoin"
scheduler:
Expand Down
4 changes: 2 additions & 2 deletions kube/chaos/pod-kill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ spec:
mode: one
selector:
namespaces:
- default
- starcoin-halley
labelSelectors:
"app": "starcoin"
"app": "starcoin-0"
scheduler:
cron: "@every 20m"
38 changes: 38 additions & 0 deletions kube/chaos/schedule-halley-networkdelay.yaml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions kube/chaos/schedule-halley-networkpartition.yaml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions kube/chaos/schedule-halley-podkill.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion kube/chaos/time-chaos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
mode: one
selector:
namespaces:
- default
- starcoin-halley
labelSelectors:
"app": "starcoin"
timeOffset: "-10m"
Expand Down