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:
parent
25adc1d07b
commit
f50a147e17
5 changed files with 74 additions and 1 deletions
48
apps/nxtgauge-ai-assistant/base/deployment.yaml
Normal file
48
apps/nxtgauge-ai-assistant/base/deployment.yaml
Normal 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
|
||||
5
apps/nxtgauge-ai-assistant/base/kustomization.yaml
Normal file
5
apps/nxtgauge-ai-assistant/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
13
apps/nxtgauge-ai-assistant/base/service.yaml
Normal file
13
apps/nxtgauge-ai-assistant/base/service.yaml
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue