Add readiness endpoint and clear adminKey in Helm values
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user