Skip to content

Commit

Permalink
operator v1: set readiness probe timeout of 5s
Browse files Browse the repository at this point in the history
it times out in tests with lower memory or CPU.
In addition, this was seen in cloud production as well (rarely).
  • Loading branch information
birdayz committed Oct 9, 2024
1 parent 2e172da commit 19a6c99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operator/pkg/resources/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ func (r *StatefulSetResource) obj(
},
}, r.getPorts()...),
ReadinessProbe: &corev1.Probe{
TimeoutSeconds: 5,
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
Command: []string{"bash", "-xc", fmt.Sprintf("rpk cluster health %s| grep 'Healthy:.*true'", strings.Join(rpkFlags, " "))},
Expand Down

0 comments on commit 19a6c99

Please sign in to comment.