We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e2271e commit 698bea3Copy full SHA for 698bea3
mysqlcluster/container/mysql.go
@@ -88,7 +88,11 @@ func (c *mysql) getLivenessProbe() *corev1.Probe {
88
return &corev1.Probe{
89
Handler: corev1.Handler{
90
Exec: &corev1.ExecAction{
91
- Command: []string{"pgrep", "mysqld"},
+ Command: []string{
92
+ "sh",
93
+ "-c",
94
+ "touch /var/lib/mysql/auto.cnf && pgrep mysqld",
95
+ },
96
},
97
98
InitialDelaySeconds: 30,
mysqlcluster/container/mysql_test.go
@@ -108,7 +108,11 @@ func TestGetMysqlLivenessProbe(t *testing.T) {
108
livenessProbe := &corev1.Probe{
109
110
111
112
113
114
115
116
117
118
0 commit comments