Add readiness endpoint and clear adminKey in Helm values
This commit is contained in:
@@ -3,6 +3,8 @@ from pydantic import BaseModel
|
||||
import uvicorn
|
||||
from datetime import datetime
|
||||
from fastapi import FastAPI, HTTPException
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional, List
|
||||
import os
|
||||
import httpx
|
||||
|
||||
@@ -60,6 +62,12 @@ async def health():
|
||||
"""Health check endpoint"""
|
||||
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
|
||||
@app.get("/items", response_model=List[Item], tags=["Items"])
|
||||
async def get_items():
|
||||
|
||||
@@ -211,7 +211,7 @@ api7:
|
||||
gateway:
|
||||
# Use the actual DP Manager service for admin API
|
||||
adminUrl: http://api7ee3-0-1759339083-dp-manager.api7ee.svc.cluster.local:7900
|
||||
adminKey: "edd1c9f034335f136f87ad84b625c8f1" # Change this!
|
||||
adminKey: "" # Change this!
|
||||
group: default
|
||||
# Gateway service for traffic routing
|
||||
gatewayService: gateway-0-1759393614-gateway
|
||||
|
||||
Reference in New Issue
Block a user