48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nxtgauge-ai-assistant
|
|
labels:
|
|
app: nxtgauge-ai-assistant
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nxtgauge-ai-assistant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nxtgauge-ai-assistant
|
|
spec:
|
|
containers:
|
|
- name: ai-assistant
|
|
image: registry.nxtgauge.com/nxtgauge-ai-assistant
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: APP_HOST
|
|
value: "0.0.0.0"
|
|
- name: APP_PORT
|
|
value: "8080"
|
|
- name: OLLAMA_BASE_URL
|
|
value: "http://ollama.nxtgauge-ai.svc.cluster.local:11434"
|
|
- name: OLLAMA_CHAT_MODEL
|
|
value: "gemma3:270m"
|
|
- name: OLLAMA_EMBED_MODEL
|
|
value: "nomic-embed-text"
|
|
- name: NXTGAUGE_USERS_URL
|
|
value: "http://nxtgauge-rust-users:9101"
|
|
- name: AI_SERVICE_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: nxtgauge-ai-assistant-secrets
|
|
key: ai-service-key
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 512Mi
|