[PR #32] [MERGED] Added kubernetes liveness and readiness probes #410

Closed
opened 2026-03-15 14:17:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/axllent/mailpit/pull/32
Author: @mfechner
Created: 1/30/2023
Status: Merged
Merged: 1/30/2023
Merged by: @axllent

Base: developHead: develop


📝 Commits (1)

  • 74c9058 Added kubernetes liveness and readiness probes

📊 Changes

3 files changed (+43 additions, -6 deletions)

View changed files

server/handlers/k8healthz.go (+8 -0)
server/handlers/k8sready.go (+17 -0)
📝 server/server.go (+18 -6)

📄 Description

Kubernetes checks if a pod is ok and if it can retrieve traffic using probes. This commit add two routes to make a liveness probe and a readiness probe.

Added this two routes makes it possible to start mailpit also in a k8s cluster.
Kubernets can then use these two endpoints to monitor the application.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/axllent/mailpit/pull/32 **Author:** [@mfechner](https://github.com/mfechner) **Created:** 1/30/2023 **Status:** ✅ Merged **Merged:** 1/30/2023 **Merged by:** [@axllent](https://github.com/axllent) **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`74c9058`](https://github.com/axllent/mailpit/commit/74c9058afc1877e5b8e0f2a933e7632b1d485897) Added kubernetes liveness and readiness probes ### 📊 Changes **3 files changed** (+43 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `server/handlers/k8healthz.go` (+8 -0) ➕ `server/handlers/k8sready.go` (+17 -0) 📝 `server/server.go` (+18 -6) </details> ### 📄 Description Kubernetes checks if a pod is ok and if it can retrieve traffic using probes. This commit add two routes to make a liveness probe and a readiness probe. Added this two routes makes it possible to start mailpit also in a k8s cluster. Kubernets can then use these two endpoints to monitor the application. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 14:17:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#410
No description provided.