Skip to content

Commit

Permalink
set connect timeout for set password sql (pingcap#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojingchen authored and weekface committed Dec 7, 2018
1 parent 7da4bd2 commit 76b92a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/tidb-cluster/templates/tidb-initializer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
# And also avoid plain text password show in Job and Pod spec
# Besides we can also add more SQL in the file for initialization, eg. create database, create user etc
- |
until mysql -h {{ .Values.clusterName }}-tidb -P 4000 < /data/init-password.sql; do sleep 2; done
until mysql -h {{ .Values.clusterName }}-tidb -P 4000 --connect-timeout=5 < /data/init-password.sql; do sleep 2; done
volumeMounts:
- name: password
mountPath: /data
Expand Down

0 comments on commit 76b92a9

Please sign in to comment.