Chore[New Exp]: Charts for HTTP Chaos Reset Peer (#555)
* Added charts for http reset peer; Added comments in http-chaos-latency Signed-off-by: avaakash <as86414@gmail.com>
This commit is contained in:
committed by
GitHub
parent
201336c71e
commit
5cdee8979e
48
experiments/generic/pod-http-reset-peer/engine.yaml
Normal file
48
experiments/generic/pod-http-reset-peer/engine.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
kind: ChaosEngine
|
||||
metadata:
|
||||
name: nginx-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-reset-peer-sa
|
||||
experiments:
|
||||
- name: pod-http-reset-peer
|
||||
spec:
|
||||
components:
|
||||
env:
|
||||
# set chaos duration (in sec) as desired
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '60' # in seconds
|
||||
|
||||
# reset timeout specifies after how much duration to reset the connection
|
||||
- name: RESET_TIMEOUT
|
||||
value: '0' #in ms
|
||||
|
||||
# port of the target service
|
||||
- name: TARGET_SERVICE_PORT
|
||||
value: "80"
|
||||
|
||||
- name: TARGET_PODS
|
||||
value: ''
|
||||
|
||||
# provide the name of container runtime
|
||||
# for litmus LIB, it supports docker, containerd, crio
|
||||
# for pumba LIB, it supports docker only
|
||||
- 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: ''
|
||||
|
Reference in New Issue
Block a user