49 lines
962 B
YAML
49 lines
962 B
YAML
---
|
|
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
|