mirror of
https://github.com/Rainyy21/k3s-health-dashboard.git
synced 2026-10-11 00:50:20 -04:00
14 lines
283 B
Python
14 lines
283 B
Python
from fastapi import FastAPI
|
|
from app.routers import nodes, pods, metrics
|
|
|
|
app = FastAPI(title="k3s Health Dashboard")
|
|
|
|
app.include_router(nodes.router)
|
|
app.include_router(pods.router)
|
|
app.include_router(metrics.router)
|
|
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"status": "ok"}
|