Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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