Skip to content

Commit

Permalink
change tidb readness probe to TCPSocket 4000 port (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface committed Apr 8, 2020
1 parent 132fa4b commit 0f145fa
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 @@ -630,11 +630,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 @@ -657,10 +652,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 0f145fa

Please sign in to comment.