add(think): enable think router
This commit is contained in:
@@ -11,6 +11,7 @@ app.include_router(metal.router)
|
|||||||
app.include_router(vm.router)
|
app.include_router(vm.router)
|
||||||
app.include_router(k8s.router)
|
app.include_router(k8s.router)
|
||||||
app.include_router(export.router)
|
app.include_router(export.router)
|
||||||
|
app.include_router(think.router)
|
||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
def root():
|
def root():
|
||||||
|
|||||||
8
examples/k8s/configmap.yaml
Normal file
8
examples/k8s/configmap.yaml
Normal 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>"
|
||||||
@@ -18,6 +18,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
image: <your-ecr-repo>:latest
|
image: <your-ecr-repo>:latest
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: ai-api-config
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
env:
|
env:
|
||||||
@@ -25,17 +28,3 @@ spec:
|
|||||||
value: "kubernetes.default"
|
value: "kubernetes.default"
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
- name: KUBERNETES_SERVICE_PORT
|
||||||
value: "443"
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user