Skip to content

Instantly share code, notes, and snippets.

@gtfisher
Created May 21, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtfisher/924f709d4a360c142e5dd54fa88a862c to your computer and use it in GitHub Desktop.
Save gtfisher/924f709d4a360c142e5dd54fa88a862c to your computer and use it in GitHub Desktop.
litmusChaos Chaos engine yaml
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: nginx-chaos
namespace: nginx
spec:
annotationCheck: 'true'
engineState: 'active'
appinfo:
appns: 'nginx'
applabel: 'app=nginx'
appkind: 'deployment'
chaosServiceAccount: container-kill-sa
# use retain to keep the job for debug
jobCleanUpPolicy: 'delete'
experiments:
- name: container-kill
spec:
components:
env:
# specify the name of the container to be killed
- name: TARGET_CONTAINER
value: 'nginx'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment