Add readiness endpoint and clear adminKey in Helm values
All checks were successful
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-api (push) Successful in 43s
Build and Deploy / build-web (push) Successful in 1m1s

This commit is contained in:
d.viti
2025-10-08 12:41:15 +02:00
parent 1b31601543
commit 7ca15fe1a5
2 changed files with 9 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ from pydantic import BaseModel
import uvicorn import uvicorn
from datetime import datetime from datetime import datetime
from fastapi import FastAPI, HTTPException from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
from typing import Optional, List
import os import os
import httpx import httpx
@@ -60,6 +62,12 @@ async def health():
"""Health check endpoint""" """Health check endpoint"""
return {"status": "healthy", "service": "api", "timestamp": datetime.now().isoformat()} return {"status": "healthy", "service": "api", "timestamp": datetime.now().isoformat()}
# Readiness check
@app.get("/ready")
async def ready():
"""Readiness check endpoint"""
return {"status": "ready", "service": "api", "timestamp": datetime.now().isoformat()}
# Items endpoints # Items endpoints
@app.get("/items", response_model=List[Item], tags=["Items"]) @app.get("/items", response_model=List[Item], tags=["Items"])
async def get_items(): async def get_items():

View File

@@ -211,7 +211,7 @@ api7:
gateway: gateway:
# Use the actual DP Manager service for admin API # Use the actual DP Manager service for admin API
adminUrl: http://api7ee3-0-1759339083-dp-manager.api7ee.svc.cluster.local:7900 adminUrl: http://api7ee3-0-1759339083-dp-manager.api7ee.svc.cluster.local:7900
adminKey: "edd1c9f034335f136f87ad84b625c8f1" # Change this! adminKey: "" # Change this!
group: default group: default
# Gateway service for traffic routing # Gateway service for traffic routing
gatewayService: gateway-0-1759393614-gateway gatewayService: gateway-0-1759393614-gateway