mirror of
https://github.com/mudler/LocalAI.git
synced 2025-02-07 03:29:10 +00:00
feat: add /healthz and /readyz endpoints for kubernetes (#374)
This commit is contained in:
parent
589dfae89f
commit
bf54b78270
@ -114,6 +114,14 @@ func App(opts ...AppOption) *fiber.App {
|
|||||||
app.Static("/generated-images", options.imageDir)
|
app.Static("/generated-images", options.imageDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ok := func(c *fiber.Ctx) error {
|
||||||
|
return c.SendStatus(200)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Kubernetes health checks
|
||||||
|
app.Get("/healthz", ok)
|
||||||
|
app.Get("/readyz", ok)
|
||||||
|
|
||||||
// models
|
// models
|
||||||
app.Get("/v1/models", listModels(options.loader, cm))
|
app.Get("/v1/models", listModels(options.loader, cm))
|
||||||
app.Get("/models", listModels(options.loader, cm))
|
app.Get("/models", listModels(options.loader, cm))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user