adds probe units to probe run properties (#595)
Signed-off-by: neelanjan00 <neelanjan.manna@harness.io>
This commit is contained in:
@@ -82,8 +82,8 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -86,8 +86,8 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -42,8 +42,8 @@ spec:
|
|||||||
command: [sh, -c]
|
command: [sh, -c]
|
||||||
args:
|
args:
|
||||||
- "kubectl apply -f https://hub.litmuschaos.io/api/chaos/master?file=charts/generic/experiments.yaml -n
|
- "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-network-loss
|
- name: pod-network-loss
|
||||||
inputs:
|
inputs:
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -84,35 +84,35 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '90'
|
value: '90'
|
||||||
- name: NETWORK_INTERFACE
|
- name: NETWORK_INTERFACE
|
||||||
value: 'eth0'
|
value: 'eth0'
|
||||||
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
||||||
value: '100'
|
value: '100'
|
||||||
- name: CONTAINER_RUNTIME
|
- name: CONTAINER_RUNTIME
|
||||||
value: 'containerd'
|
value: 'containerd'
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/run/containerd/containerd.sock'
|
value: '/run/containerd/containerd.sock'
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/litmus-checker:latest
|
image: litmuschaos/litmus-checker:latest
|
||||||
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
||||||
|
|
||||||
- name: delete-application
|
- name: delete-application
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/litmus-app-deployer:latest
|
image: litmuschaos/litmus-app-deployer:latest
|
||||||
args: ["-namespace=bank","-typeName=resilient","-operation=delete", "-app=bank-of-anthos"]
|
args: ["-namespace=bank","-typeName=resilient","-operation=delete", "-app=bank-of-anthos"]
|
||||||
|
|
||||||
- name: revert-chaos
|
- name: revert-chaos
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/k8s:latest
|
image: litmuschaos/k8s:latest
|
||||||
command: [sh, -c]
|
command: [sh, -c]
|
||||||
args:
|
args:
|
||||||
[
|
[
|
||||||
"kubectl delete chaosengine pod-network-loss-chaos -n {{workflow.parameters.adminModeNamespace}}",
|
"kubectl delete chaosengine pod-network-loss-chaos -n {{workflow.parameters.adminModeNamespace}}",
|
||||||
]
|
]
|
||||||
|
@@ -88,8 +88,8 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -82,8 +82,8 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -86,8 +86,8 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -94,10 +94,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -108,8 +108,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -164,10 +164,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -178,8 +178,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -235,10 +235,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -249,8 +249,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -308,10 +308,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -322,8 +322,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -382,10 +382,10 @@ spec:
|
|||||||
operation: "present"
|
operation: "present"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -396,8 +396,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -98,10 +98,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -112,8 +112,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -168,10 +168,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -182,8 +182,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -239,10 +239,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -253,8 +253,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -312,10 +312,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -326,8 +326,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
@@ -386,10 +386,10 @@ spec:
|
|||||||
operation: "present"
|
operation: "present"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-probe-success"
|
- name: "check-probe-success"
|
||||||
type: "promProbe"
|
type: "promProbe"
|
||||||
promProbe/inputs:
|
promProbe/inputs:
|
||||||
@@ -400,8 +400,8 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
@@ -94,10 +94,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -108,10 +108,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 10
|
initialDelay: 10s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
#number of cpu cores to be consumed
|
#number of cpu cores to be consumed
|
||||||
@@ -165,10 +165,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -179,10 +179,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 10
|
initialDelay: 10s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: MEMORY_CONSUMPTION
|
- name: MEMORY_CONSUMPTION
|
||||||
@@ -237,10 +237,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -251,10 +251,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 2
|
initialDelay: 2s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
@@ -310,10 +310,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -324,25 +324,25 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 2
|
initialDelay: 2s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '30'
|
value: '30'
|
||||||
- name: NETWORK_INTERFACE
|
- name: NETWORK_INTERFACE
|
||||||
value: 'eth0'
|
value: 'eth0'
|
||||||
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
||||||
value: '100'
|
value: '100'
|
||||||
- name: CONTAINER_RUNTIME
|
- name: CONTAINER_RUNTIME
|
||||||
value: 'containerd'
|
value: 'containerd'
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/run/containerd/containerd.sock'
|
value: '/run/containerd/containerd.sock'
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/litmus-checker:latest
|
image: litmuschaos/litmus-checker:latest
|
||||||
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
||||||
|
|
||||||
- name: disk-fill
|
- name: disk-fill
|
||||||
inputs:
|
inputs:
|
||||||
@@ -385,10 +385,10 @@ spec:
|
|||||||
operation: "present"
|
operation: "present"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -399,10 +399,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 1
|
initialDelay: 1s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: FILL_PERCENTAGE
|
- name: FILL_PERCENTAGE
|
||||||
@@ -410,7 +410,7 @@ spec:
|
|||||||
- name: TARGET_CONTAINER
|
- name: TARGET_CONTAINER
|
||||||
value: ''
|
value: ''
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '30'
|
value: '30'
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/litmus-checker:latest
|
image: litmuschaos/litmus-checker:latest
|
||||||
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
||||||
@@ -428,13 +428,13 @@ spec:
|
|||||||
- name: delete-loadtest
|
- name: delete-loadtest
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/litmus-app-deployer:latest
|
image: litmuschaos/litmus-app-deployer:latest
|
||||||
args: ["-namespace=loadtest","-operation=delete", "-app=loadtest"]
|
args: ["-namespace=loadtest","-operation=delete", "-app=loadtest"]
|
||||||
|
|
||||||
- name: revert-chaos
|
- name: revert-chaos
|
||||||
container:
|
container:
|
||||||
image: litmuschaos/k8s:latest
|
image: litmuschaos/k8s:latest
|
||||||
command: [sh, -c]
|
command: [sh, -c]
|
||||||
args:
|
args:
|
||||||
[
|
[
|
||||||
"kubectl delete chaosengine pod-memory-hog-chaos pod-cpu-hog-chaos catalogue-pod-delete-chaos pod-network-loss-chaos -n {{workflow.parameters.adminModeNamespace}}",
|
"kubectl delete chaosengine pod-memory-hog-chaos pod-cpu-hog-chaos catalogue-pod-delete-chaos pod-network-loss-chaos -n {{workflow.parameters.adminModeNamespace}}",
|
||||||
]
|
]
|
@@ -98,10 +98,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -112,10 +112,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 10
|
initialDelay: 10s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
#number of cpu cores to be consumed
|
#number of cpu cores to be consumed
|
||||||
@@ -169,10 +169,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -183,10 +183,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 10
|
initialDelay: 10s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: MEMORY_CONSUMPTION
|
- name: MEMORY_CONSUMPTION
|
||||||
@@ -241,10 +241,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -255,10 +255,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 2
|
initialDelay: 2s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
@@ -314,10 +314,10 @@ spec:
|
|||||||
responseCode: "200"
|
responseCode: "200"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 12
|
interval: 100ms
|
||||||
attempt: 3
|
attempt: 3
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -328,10 +328,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 2
|
initialDelay: 2s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
@@ -389,10 +389,10 @@ spec:
|
|||||||
operation: "present"
|
operation: "present"
|
||||||
mode: "Continuous"
|
mode: "Continuous"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 1
|
attempt: 1
|
||||||
probePollingInterval: 1
|
probePollingInterval: 1s
|
||||||
- name: "check-benchmark"
|
- name: "check-benchmark"
|
||||||
type: "cmdProbe"
|
type: "cmdProbe"
|
||||||
cmdProbe/inputs:
|
cmdProbe/inputs:
|
||||||
@@ -403,10 +403,10 @@ spec:
|
|||||||
value: "100"
|
value: "100"
|
||||||
mode: "Edge"
|
mode: "Edge"
|
||||||
runProperties:
|
runProperties:
|
||||||
probeTimeout: 1000
|
probeTimeout: 1s
|
||||||
interval: 1
|
interval: 100ms
|
||||||
attempt: 2
|
attempt: 2
|
||||||
initialDelaySeconds: 1
|
initialDelay: 1s
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: FILL_PERCENTAGE
|
- name: FILL_PERCENTAGE
|
||||||
|
Reference in New Issue
Block a user