This commit is contained in:
Ashwin Bharambe 2025-06-02 16:31:24 -07:00
parent 375546ade3
commit c754d9af7a
3 changed files with 17 additions and 34 deletions

View file

@ -7,6 +7,11 @@ spec:
selector: selector:
app.kubernetes.io/name: llama-stack app.kubernetes.io/name: llama-stack
ports: ports:
- port: 8321 - name: llama-stack-api
port: 8321
targetPort: 8321 targetPort: 8321
protocol: TCP protocol: TCP
- name: llama-stack-ui
port: 8322
targetPort: 8322
protocol: TCP

View file

@ -18,10 +18,12 @@ spec:
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: llama-stack app.kubernetes.io/name: llama-stack
app.kubernetes.io/component: server
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: llama-stack app.kubernetes.io/name: llama-stack
app.kubernetes.io/component: server
spec: spec:
containers: containers:
- name: llama-stack - name: llama-stack
@ -65,16 +67,3 @@ spec:
- name: llama-config - name: llama-config
configMap: configMap:
name: llama-stack-config name: llama-stack-config
---
apiVersion: v1
kind: Service
metadata:
name: llama-stack-service
spec:
selector:
app.kubernetes.io/name: llama-stack
ports:
- protocol: TCP
port: 8321
targetPort: 8321
type: ClusterIP

View file

@ -3,16 +3,19 @@ kind: Deployment
metadata: metadata:
name: llama-stack-ui name: llama-stack-ui
labels: labels:
app: llama-stack-ui app.kubernetes.io/name: llama-stack
app.kubernetes.io/component: ui
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: llama-stack-ui app.kubernetes.io/name: llama-stack
app.kubernetes.io/component: ui
template: template:
metadata: metadata:
labels: labels:
app: llama-stack-ui app.kubernetes.io/name: llama-stack
app.kubernetes.io/component: ui
spec: spec:
containers: containers:
- name: llama-stack-ui - name: llama-stack-ui
@ -21,6 +24,8 @@ spec:
env: env:
- name: NEXT_PUBLIC_LLAMA_STACK_BASE_URL - name: NEXT_PUBLIC_LLAMA_STACK_BASE_URL
value: ${NEXT_PUBLIC_LLAMA_STACK_BASE_URL} value: ${NEXT_PUBLIC_LLAMA_STACK_BASE_URL}
- name: LLAMA_STACK_UI_PORT
value: "8322"
args: args:
- -c - -c
- | - |
@ -51,23 +56,7 @@ spec:
npx next --version || echo "Next.js not found, checking node_modules..." npx next --version || echo "Next.js not found, checking node_modules..."
ls -la node_modules/.bin/ | grep next || echo "No next binary found" ls -la node_modules/.bin/ | grep next || echo "No next binary found"
npm run dev --port 8322 npm run dev
ports: ports:
- containerPort: 8322 - containerPort: 8322
workingDir: /app workingDir: /app
---
apiVersion: v1
kind: Service
metadata:
name: llama-stack-ui-service
labels:
app: llama-stack-ui
spec:
selector:
app: llama-stack-ui
ports:
- port: 8322
targetPort: 8322
protocol: TCP
type: ClusterIP