forked from kuberhealthy/kuberhealthy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
http-check.yaml
36 lines (36 loc) · 1.01 KB
/
http-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
name: http
namespace: kuberhealthy
spec:
runInterval: 5m
timeout: 10m
podSpec:
containers:
- name: https
image: kuberhealthy/http-check:v1.5.0
imagePullPolicy: IfNotPresent
env:
- name: CHECK_URL
value: "https://reqres.in/api/users"
- name: COUNT #### default: "0"
value: "5"
- name: SECONDS #### default: "0"
value: "1"
- name: PASSING_PERCENT #### default: "100"
value: "80"
- name: REQUEST_TYPE #### default: "GET"
value: "POST"
- name: REQUEST_BODY #### default: "{}"
value: '{"name": "morpheus", "job": "leader"}'
- name: EXPECTED_STATUS_CODE #### default: "200"
value: "201"
resources:
requests:
cpu: 15m
memory: 15Mi
limits:
cpu: 25m
restartPolicy: Always
terminationGracePeriodSeconds: 5