chore(workflow): Updating the http schema and few minor fixes (#429)

* updating the probe schema

Signed-off-by: Oum Kale <oumkale@chaosnative.com>
This commit is contained in:
OUM NIVRATHI KALE
2021-03-23 16:10:56 +05:30
committed by GitHub
parent ea6e7b427e
commit bf44a78565
6 changed files with 150 additions and 143 deletions

View File

@@ -54,7 +54,7 @@ spec:
command: [sh, -c]
args:
- "kubectl apply -f https://hub.litmuschaos.io/api/chaos/master?file=charts/generic/experiments.yaml -n
{{workflow.parameters.adminModeNamespace}} | sleep 30"
{{workflow.parameters.adminModeNamespace}} ; sleep 30"
- name: pod-cpu-hog
inputs:
@@ -87,6 +87,7 @@ spec:
httpProbe/inputs:
url: "http://front-end.sock-shop.svc.cluster.local:80"
insecureSkipVerify: false
responseTimeout: 100
method:
get:
criteria: "=="
@@ -95,7 +96,7 @@ spec:
runProperties:
probeTimeout: 2
interval: 1
retry: 1
retry: 2
probePollingInterval: 1
- name: "check-benchmark"
type: "cmdProbe"
@@ -104,13 +105,13 @@ spec:
comparator:
type: "int" # supports: string, int, float
criteria: ">=" #supports >=,<=,>,<,==,!= for int and contains,equal,notEqual,matches,notMatches for string values
value: "500"
value: "100"
source: "inline" # it can be “inline” or any image
mode: "Edge"
runProperties:
probeTimeout: 2
interval: 2
retry: 1
interval: 1
retry: 2
initialDelaySeconds: 10
components:
experimentImage: "litmuschaos/go-runner:latest"
@@ -122,7 +123,7 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '30' # in seconds
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')"
value: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')"
container:
image: litmuschaos/litmus-checker:latest
@@ -159,6 +160,7 @@ spec:
httpProbe/inputs:
url: "http://front-end.sock-shop.svc.cluster.local:80"
insecureSkipVerify: false
responseTimeout: 100
method:
get:
criteria: "=="
@@ -167,7 +169,7 @@ spec:
runProperties:
probeTimeout: 2
interval: 1
retry: 1
retry: 2
probePollingInterval: 1
- name: "check-benchmark"
type: "cmdProbe"
@@ -176,13 +178,13 @@ spec:
comparator:
type: "int" # supports: string, int, float
criteria: ">=" #supports >=,<=,>,<,==,!= for int and contains,equal,notEqual,matches,notMatches for string values
value: "500"
value: "100"
source: "inline" # it can be “inline” or any image
mode: "Edge"
runProperties:
probeTimeout: 2
interval: 2
retry: 1
interval: 1
retry: 2
initialDelaySeconds: 10
components:
experimentImage: "litmuschaos/go-runner:latest"
@@ -192,7 +194,7 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '30' # in seconds
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')"
value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')"
container:
image: litmuschaos/litmus-checker:latest
@@ -232,15 +234,16 @@ spec:
httpProbe/inputs:
url: "http://front-end.sock-shop.svc.cluster.local:80/catalogue"
insecureSkipVerify: false
responseTimeout: 100
method:
get:
criteria: "=="
responseCode: "200"
mode: "Continuous"
runProperties:
probeTimeout: 2
interval: 1
retry: 1
probeTimeout: 12
interval: 12
retry: 3
probePollingInterval: 1
- name: "check-benchmark"
type: "cmdProbe"
@@ -249,23 +252,22 @@ spec:
comparator:
type: "int" # supports: string, int, float
criteria: ">=" #supports >=,<=,>,<,==,!= for int and contains,equal,notEqual,matches,notMatches for string values
value: "500"
value: "100"
source: "inline" # it can be “inline” or any image
mode: "Edge"
runProperties:
probeTimeout: 2
interval: 2
retry: 1
interval: 1
retry: 2
initialDelaySeconds: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
# set chaos interval (in sec) as desired
- name: CHAOS_INTERVAL
value: '10'
# pod failures without '--force' & default terminationGracePeriodSeconds
- name: FORCE
value: 'false'
@@ -307,15 +309,16 @@ spec:
httpProbe/inputs:
url: "http://front-end.sock-shop.svc.cluster.local:80/cards"
insecureSkipVerify: false
responseTimeout: 100
method:
get:
criteria: "=="
responseCode: "200"
mode: "Continuous"
runProperties:
probeTimeout: 2
interval: 1
retry: 2
probeTimeout: 12
interval: 12
retry: 3
probePollingInterval: 1
- name: "check-benchmark"
type: "cmdProbe"
@@ -324,22 +327,21 @@ spec:
comparator:
type: "int" # supports: string, int, float
criteria: ">=" #supports >=,<=,>,<,==,!= for int and contains,equal,notEqual,matches,notMatches for string values
value: "500"
value: "100"
source: "inline" # it can be “inline” or any image
mode: "Edge"
runProperties:
probeTimeout: 2
interval: 2
retry: 1
interval: 1
retry: 2
initialDelaySeconds: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
- name: NETWORK_INTERFACE
value: 'eth0'
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: '100'
- name: CONTAINER_RUNTIME
@@ -402,23 +404,23 @@ spec:
comparator:
type: "int" # supports: string, int, float
criteria: ">=" #supports >=,<=,>,<,==,!= for int and contains,equal,notEqual,matches,notMatches for string values
value: "500"
value: "100"
source: "inline" # it can be “inline” or any image
mode: "Edge"
runProperties:
probeTimeout: 2
interval: 2
retry: 1
interval: 1
retry: 2
initialDelaySeconds: 1
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: FILL_PERCENTAGE
value: '100'
- name: TARGET_CONTAINER
value: ''
- name: TOTAL_CHAOS_DURATION
value: '60'
value: '30'
container:
image: litmuschaos/litmus-checker:latest
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]