34 lines
989 B
YAML
34 lines
989 B
YAML
# contains the http probes with get method and verify the response code
|
|
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: engine-nginx
|
|
spec:
|
|
engineState: "active"
|
|
appinfo:
|
|
appns: "default"
|
|
applabel: "app=nginx"
|
|
appkind: "deployment"
|
|
chaosServiceAccount: pod-delete-sa
|
|
experiments:
|
|
- name: pod-delete
|
|
spec:
|
|
probe:
|
|
- name: "check-frontend-access-url"
|
|
type: "httpProbe"
|
|
httpProbe/inputs:
|
|
url: "<url>"
|
|
method:
|
|
# call http get method and verify the response code
|
|
get:
|
|
# criteria which should be matched
|
|
criteria: == # ==, !=, oneof
|
|
# exepected response code for the http request, which should follow the specified criteria
|
|
responseCode: "<response code>"
|
|
mode: "Continuous"
|
|
runProperties:
|
|
probeTimeout: 5
|
|
interval: 2
|
|
retry: 1
|
|
probePollingInterval: 2
|
|
|