add(think): enable think router

This commit is contained in:
Aleksandr Tcitlionok
2024-12-05 08:29:43 +00:00
parent 3ea939b7d6
commit f57e6028f0
3 changed files with 12 additions and 14 deletions

View File

@@ -11,6 +11,7 @@ app.include_router(metal.router)
app.include_router(vm.router)
app.include_router(k8s.router)
app.include_router(export.router)
app.include_router(think.router)
@app.get("/")
def root():

View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ai-api-config
namespace: metalcheck
data:
AI_API_URL: "<URL>"
AI_API_TOKEN: "<TOKEN>"

View File

@@ -18,6 +18,9 @@ spec:
containers:
- name: backend
image: <your-ecr-repo>:latest
envFrom:
- configMapRef:
name: ai-api-config
ports:
- containerPort: 8000
env:
@@ -25,17 +28,3 @@ spec:
value: "kubernetes.default"
- name: KUBERNETES_SERVICE_PORT
value: "443"
---
apiVersion: v1
kind: Service
metadata:
name: metalcheck-backend
namespace: metalcheck
spec:
selector:
app: metalcheck
ports:
- protocol: TCP
port: 80
targetPort: 8000
type: LoadBalancer