73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
hostname: lmstudio-webui
|
|
name: lmstudio-open-webui
|
|
labels:
|
|
app: lmstudio-open-webui
|
|
annotations:
|
|
run.oci.keep_original_groups: "1"
|
|
cdi.k8s.io/DeviceName.0: "podman.io/device=/dev/kfd"
|
|
cdi.k8s.io/DeviceName.1: "podman.io/device=/dev/dri"
|
|
spec:
|
|
hostNetwork: true
|
|
containers:
|
|
# lmstudio container
|
|
- name: lmstudio
|
|
image: localhost/lm-studio-debian
|
|
hostname: lmstudio
|
|
ports:
|
|
- containerPort: 1234
|
|
- containerPort: 5900
|
|
volumeMounts:
|
|
- name: lmstudio-data
|
|
mountPath: /root/.lmstudio
|
|
- name: lmstudio-config
|
|
mountPath: "/root/.config/LM Studio"
|
|
- name: dev-dri
|
|
mountPath: /dev/dri
|
|
- name: dev-kfd
|
|
mountPath: /dev/kfd
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- SYS_ADMIN
|
|
|
|
# Open WebUI container
|
|
- name: open-webui
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
hostname: webui
|
|
ports:
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
- name: open-webui-pvc
|
|
mountPath: /app/backend/data
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- SYS_ADMIN
|
|
|
|
volumes:
|
|
# Persistent volumes
|
|
- name: open-webui-pvc
|
|
persistentVolumeClaim:
|
|
claimName: open-webui
|
|
|
|
# HostPath devices for GPU access
|
|
- name: lmstudio-data
|
|
hostPath:
|
|
path: /home/do/.lmstudio
|
|
type: Directory
|
|
- name: lmstudio-config
|
|
hostPath:
|
|
path: "/home/do/.config/LM Studio"
|
|
type: Directory
|
|
- name: dev-dri
|
|
hostPath:
|
|
path: /dev/dri
|
|
type: Directory
|
|
- name: dev-kfd
|
|
hostPath:
|
|
path: /dev/kfd
|
|
type: CharDevice
|