Add probes to the Praefect StatefulSet
What does this MR do?
Adds startup, liveness and readiness probes to the Praefect StatefulSet, with the Gitaly chart's keys and defaults. The probes call the gRPC health service on the plain internal port, open even with TLS. Praefect opens that listener after its first Gitaly health round, so readiness waits until that round finishes; it does not track Gitaly health afterwards.
Two Praefect and two Gitaly pods became Ready through the probes, and clone and push worked. Stopping Praefect made the pod not ready in 20 seconds and restarted it within 60. Without probes, the stopped process stayed Ready at every sample over 80 seconds.
Test evidence
A restarted Praefect pod became Ready in about 2 seconds (3 runs).
Related issues
Closes #6453 (closed)
Author checklist
For general guidance, please follow our Contributing guide.
Required
For anything in this list which will not be completed, please provide a reason in the MR discussion.
- Merge Request Title and Description are up to date, accurate, and descriptive.
- MR targeting the appropriate branch.
- MR has a green pipeline.
- Documentation created/updated.
- Tests added/updated.
- Have you validated that your change works end-to-end on a real cluster deployment?
- Described above.
- Equivalent MR/issue for omnibus-gitlab opened.
- Not applicable: the change only touches chart templates.
- When ready for review, MR is marked as ready (not a draft) and assigned to a reviewer.
Reviewers checklist
- As soon as you begin reviewing, select Start a review on your first comment so the MR shows Reviewer started review.
- MR has a green pipeline on https://gitlab.com/gitlab-org/charts/gitlab.
- Consider downstream impact to the Operator, as per evaluating impact from changes to GitLab chart.
An AI coding assistant wrote this change.
The assistant also checked each claim against the Gitaly chart and the Praefect source, and ran RSpec, RuboCop, helm lint, markdownlint and Vale on the changed files.
It ran each described behavior on a k3s cluster on a test VM.