Skip to content

Commit

Permalink
change tidb readness probe to TCPSocket 4000 port (#2139) (#2178)
Browse files Browse the repository at this point in the history
* change tidb readness probe to TCP 4000

* fix ci

Co-authored-by: weekface <weekface@gmail.com>
  • Loading branch information
sre-bot and weekface committed Apr 14, 2020
1 parent f561293 commit 8f93f92
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/manager/member/tidb_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,6 @@ func getNewTiDBSetForTidbCluster(tc *v1alpha1.TidbCluster, cm *corev1.ConfigMap)
},
}

scheme := corev1.URISchemeHTTP
if tc.IsTLSClusterEnabled() {
scheme = corev1.URISchemeHTTPS
}

containers = append(containers, corev1.Container{
Name: v1alpha1.TiDBMemberType.String(),
Image: tc.TiDBImage(),
Expand All @@ -655,10 +650,8 @@ func getNewTiDBSetForTidbCluster(tc *v1alpha1.TidbCluster, cm *corev1.ConfigMap)
Env: util.AppendEnv(envs, baseTiDBSpec.Env()),
ReadinessProbe: &corev1.Probe{
Handler: corev1.Handler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/status",
Port: intstr.FromInt(10080),
Scheme: scheme,
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(4000),
},
},
InitialDelaySeconds: int32(10),
Expand Down

0 comments on commit 8f93f92

Please sign in to comment.