feat: add nxtgauge-ai-assistant to gitops and update users to 430711a

- Add nxtgauge-ai-assistant deployment, service, and kustomization overlays
- Update users service to commit 430711a with AI endpoints
- Set NXTGAUGE_USERS_URL and AI_SERVICE_KEY env vars
This commit is contained in:
Tracewebstudio Dev 2026-04-15 18:24:39 +02:00
parent 25adc1d07b
commit f50a147e17
5 changed files with 74 additions and 1 deletions

View file

@ -0,0 +1,48 @@
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://localhost:11434"
- name: OLLAMA_CHAT_MODEL
value: "smollm2:360m"
- 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

View file

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: nxtgauge-ai-assistant
labels:
app: nxtgauge-ai-assistant
spec:
ports:
- port: 8080
targetPort: 8080
name: http
selector:
app: nxtgauge-ai-assistant

View file

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
images:
- name: registry.nxtgauge.com/nxtgauge-ai-assistant
newTag: high-performance-latest

View file

@ -11,7 +11,7 @@ images:
- name: registry.nxtgauge.com/nxtgauge-rust-gateway
newTag: high-performance-latest
- name: registry.nxtgauge.com/nxtgauge-rust-users
newTag: 4fa5005
newTag: 430711a
- name: registry.nxtgauge.com/nxtgauge-rust-companies
newTag: high-performance-latest
- name: registry.nxtgauge.com/nxtgauge-rust-job-seekers