File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,11 @@ func (c *mysql) getLivenessProbe() *corev1.Probe {
88
88
return & corev1.Probe {
89
89
Handler : corev1.Handler {
90
90
Exec : & corev1.ExecAction {
91
- Command : []string {"pgrep" , "mysqld" },
91
+ Command : []string {
92
+ "sh" ,
93
+ "-c" ,
94
+ "touch /var/lib/mysql/auto.cnf && pgrep mysqld" ,
95
+ },
92
96
},
93
97
},
94
98
InitialDelaySeconds : 30 ,
Original file line number Diff line number Diff line change @@ -108,7 +108,11 @@ func TestGetMysqlLivenessProbe(t *testing.T) {
108
108
livenessProbe := & corev1.Probe {
109
109
Handler : corev1.Handler {
110
110
Exec : & corev1.ExecAction {
111
- Command : []string {"pgrep" , "mysqld" },
111
+ Command : []string {
112
+ "sh" ,
113
+ "-c" ,
114
+ "touch /var/lib/mysql/auto.cnf && pgrep mysqld" ,
115
+ },
112
116
},
113
117
},
114
118
InitialDelaySeconds : 30 ,
You can’t perform that action at this time.
0 commit comments