Added DNS Spoof chaos (#455)

* added dns-spoof chaos chart

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
This commit is contained in:
Soumya Ghosh Dastidar
2021-05-14 12:25:32 +05:30
committed by GitHub
parent de46820cdb
commit cb425d8522
16 changed files with 1308 additions and 945 deletions

View File

@@ -0,0 +1,35 @@
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: nginx-chaos
spec:
appinfo:
appns: "default"
applabel: "app=nginx"
appkind: "deployment"
# It can be active/stop
engineState: "active"
#ex. values: ns1:name=percona,ns2:run=nginx
auxiliaryAppInfo: ""
chaosServiceAccount: pod-dns-spoof-sa
# It can be delete/retain
jobCleanUpPolicy: "delete"
experiments:
- name: pod-dns-spoof
spec:
components:
env:
# map of the target hostnames eg. '{"abc.com":"spoofabc.com"}' . If empty no queries will be spoofed
- name: SPOOF_MAP
value: '{"google.com":"fakegoogle.com"}'
- name: TOTAL_CHAOS_DURATION
value: "60" # in seconds
# provide the name of container runtime, it supports docker, containerd, crio
- name: CONTAINER_RUNTIME
value: "docker"
# provide the socket file path
- name: SOCKET_PATH
value: "/var/run/docker.sock"