mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 19:04:19 +00:00
fixes
This commit is contained in:
parent
375546ade3
commit
c754d9af7a
3 changed files with 17 additions and 34 deletions
|
@ -7,6 +7,11 @@ spec:
|
|||
selector:
|
||||
app.kubernetes.io/name: llama-stack
|
||||
ports:
|
||||
- port: 8321
|
||||
- name: llama-stack-api
|
||||
port: 8321
|
||||
targetPort: 8321
|
||||
protocol: TCP
|
||||
- name: llama-stack-ui
|
||||
port: 8322
|
||||
targetPort: 8322
|
||||
protocol: TCP
|
||||
|
|
|
@ -18,10 +18,12 @@ spec:
|
|||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: llama-stack
|
||||
app.kubernetes.io/component: server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: llama-stack
|
||||
app.kubernetes.io/component: server
|
||||
spec:
|
||||
containers:
|
||||
- name: llama-stack
|
||||
|
@ -65,16 +67,3 @@ spec:
|
|||
- name: llama-config
|
||||
configMap:
|
||||
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
|
||||
|
|
|
@ -3,16 +3,19 @@ kind: Deployment
|
|||
metadata:
|
||||
name: llama-stack-ui
|
||||
labels:
|
||||
app: llama-stack-ui
|
||||
app.kubernetes.io/name: llama-stack
|
||||
app.kubernetes.io/component: ui
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: llama-stack-ui
|
||||
app.kubernetes.io/name: llama-stack
|
||||
app.kubernetes.io/component: ui
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: llama-stack-ui
|
||||
app.kubernetes.io/name: llama-stack
|
||||
app.kubernetes.io/component: ui
|
||||
spec:
|
||||
containers:
|
||||
- name: llama-stack-ui
|
||||
|
@ -21,6 +24,8 @@ spec:
|
|||
env:
|
||||
- name: NEXT_PUBLIC_LLAMA_STACK_BASE_URL
|
||||
value: ${NEXT_PUBLIC_LLAMA_STACK_BASE_URL}
|
||||
- name: LLAMA_STACK_UI_PORT
|
||||
value: "8322"
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
|
@ -51,23 +56,7 @@ spec:
|
|||
npx next --version || echo "Next.js not found, checking node_modules..."
|
||||
ls -la node_modules/.bin/ | grep next || echo "No next binary found"
|
||||
|
||||
npm run dev --port 8322
|
||||
npm run dev
|
||||
ports:
|
||||
- containerPort: 8322
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue