Added open-terminal
This commit is contained in:
48
k8s/apps/ollama/open-terminal.yaml
Normal file
48
k8s/apps/ollama/open-terminal.yaml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: open-terminal
|
||||||
|
labels:
|
||||||
|
app: open-terminal
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: open-terminal
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: open-terminal
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: uk-desktop.tail2fe2d.ts.net
|
||||||
|
containers:
|
||||||
|
- name: open-terminal
|
||||||
|
image: ghcr.io/open-webui/open-terminal:slim
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
env:
|
||||||
|
- name: OPEN_TERMINAL_API_KEY
|
||||||
|
value: "LOCAL_ACCESS_TOKEN"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
memory: 2Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: open-terminal
|
||||||
|
labels:
|
||||||
|
app: open-terminal
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: open-terminal
|
||||||
|
ports:
|
||||||
|
- port: 8000
|
||||||
|
targetPort: 8000
|
||||||
|
protocol: TCP
|
||||||
Reference in New Issue
Block a user