add(think): enable think router
This commit is contained in:
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:
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user