Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request vitessio#3584 from derekperkins/mysql-liveness-probe
Browse files Browse the repository at this point in the history
helm: update liveness probes
  • Loading branch information
enisoc authored Jan 27, 2018
2 parents 43aaa50 + b434853 commit 83866b3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
8 changes: 7 additions & 1 deletion helm/vitess/templates/_vtctld.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,15 @@ spec:
containers:
- name: vtctld
image: vitess/vtctld:{{$vitessTag}}
readinessProbe:
httpGet:
path: /debug/health
port: 15000
initialDelaySeconds: 30
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /debug/vars
path: /debug/status
port: 15000
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
8 changes: 7 additions & 1 deletion helm/vitess/templates/_vtgate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,15 @@ spec:
containers:
- name: vtgate
image: vitess/vtgate:{{$vitessTag}}
readinessProbe:
httpGet:
path: /debug/health
port: 15001
initialDelaySeconds: 30
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /debug/vars
path: /debug/status
port: 15001
initialDelaySeconds: 30
timeoutSeconds: 5
Expand Down
17 changes: 16 additions & 1 deletion helm/vitess/templates/_vttablet.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
name: vttablet
labels:
app: vitess
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
publishNotReadyAddresses: true
ports:
Expand Down Expand Up @@ -60,6 +62,7 @@ metadata:
spec:
serviceName: vttablet
replicas: {{ .replicas | default $defaultVttablet.replicas }}
podManagementPolicy: Parallel
updateStrategy:
type: RollingUpdate
selector:
Expand Down Expand Up @@ -215,9 +218,15 @@ spec:

- name: vttablet
image: "vitess/vttablet:{{$vitessTag}}"
readinessProbe:
httpGet:
path: /debug/health
port: 15002
initialDelaySeconds: 60
timeoutSeconds: 10
livenessProbe:
httpGet:
path: /debug/vars
path: /debug/status
port: 15002
initialDelaySeconds: 60
timeoutSeconds: 10
Expand Down Expand Up @@ -306,6 +315,12 @@ spec:
- name: mysql
image: {{.mysqlImage | default $defaultVttablet.mysqlImage | quote}}
imagePullPolicy: Always
readinessProbe:
exec:
command: ["mysqladmin", "ping", "-uroot", "--socket=/vtdataroot/tabletdata/mysql.sock"]
initialDelaySeconds: 60
timeoutSeconds: 10

volumeMounts:
- name: vtdataroot
mountPath: /vtdataroot
Expand Down

0 comments on commit 83866b3

Please sign in to comment.