* Added charts for http chaos latency Signed-off-by: avaakash <as86414@gmail.com> * Removed target_host env Signed-off-by: avaakash <as86414@gmail.com> * Removed listen_port from engine.yaml Signed-off-by: avaakash <as86414@gmail.com> * Added network_interface Signed-off-by: avaakash <as86414@gmail.com> * Added icon; Changed version to 0.1.0 Signed-off-by: avaakash <as86414@gmail.com> * Changed TARGET_PORT->TARGET_SERVICE_PORT, LISTEN_PORT->PROXY_PORT Signed-off-by: avaakash <as86414@gmail.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: nginx-http-chaos
|
|
namespace: default
|
|
spec:
|
|
# It can be active/stop
|
|
engineState: 'active'
|
|
appinfo:
|
|
appns: 'default'
|
|
# FYI, To see app label, apply kubectl get pods --show-labels
|
|
applabel: 'app=nginx'
|
|
appkind: 'deployment'
|
|
chaosServiceAccount: pod-http-latency-sa
|
|
experiments:
|
|
- name: pod-http-latency
|
|
spec:
|
|
components:
|
|
env:
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '60' # in seconds
|
|
|
|
- name: LATENCY
|
|
value: '2000' #in ms
|
|
|
|
# port of the target service
|
|
- name: TARGET_SERVICE_PORT
|
|
value: "80"
|
|
|
|
# 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'
|
|
|
|
## percentage of total pods to target
|
|
- name: PODS_AFFECTED_PERC
|
|
value: ''
|