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).

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

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.

Edited by Clemens Beck

Merge request reports

Loading
Loading