generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathcustom-probe.yaml
63 lines (63 loc) · 1.72 KB
/
custom-probe.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This example shows how to uses a user-defined probe
apiVersion: moco.cybozu.com/v1beta2
kind: MySQLCluster
metadata:
namespace: default
name: test
spec:
replicas: 3
podTemplate:
spec:
containers:
- name: mysqld
image: ghcr.io/cybozu-go/moco/mysql:8.4.4
# If you want to override the default probes, you cannot override the httpGet.
livenessProbe:
failureThreshold: 3
# Cannot be overwritten httpGet.
#
# httpGet:
# path: /foo/healthz
# port: health
# scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
terminationGracePeriodSeconds: 200
# Default probes:
#
# startupProbe:
# failureThreshold: 360 # .spec.startupWaitSeconds (default: 3600) / 10
# httpGet:
# path: /healthz
# port: health
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 1
# readinessProbe:
# failureThreshold: 3
# httpGet:
# path: /readyz
# port: health
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 1
# livenessProbe:
# failureThreshold: 3
# httpGet:
# path: /healthz
# port: health
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 1
volumeClaimTemplates:
- metadata:
name: mysql-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi