Skip to content

Instantly share code, notes, and snippets.

@vandot
Created July 30, 2020 20:00
Show Gist options
  • Save vandot/402df53ce5a29377ed3955e4f1120390 to your computer and use it in GitHub Desktop.
Save vandot/402df53ce5a29377ed3955e4f1120390 to your computer and use it in GitHub Desktop.
apiVersion: pingcap.com/v1alpha1
kind: NetworkChaos
metadata:
name: network-partition-example
namespace: vandot
spec:
action: partition
mode: one
duration: "59s"
selector:
labelSelectors:
"statefulset.kubernetes.io/pod-name": "bee-7"
direction: both
target:
selector:
labelSelector:
"app.kubernetes.io/name": "bee"
mode: all
scheduler:
cron: "@every 1m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment