mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[PR #32] [MERGED] Added kubernetes liveness and readiness probes #410
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#410
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
develop← Head:develop📝 Commits (1)
74c9058Added 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.