39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata: { name: browser, namespace: ai }
|
|
spec:
|
|
replicas: 1
|
|
selector: { matchLabels: { app: browser } }
|
|
template:
|
|
metadata: { labels: { app: browser } }
|
|
spec:
|
|
containers:
|
|
- name: browser
|
|
image: docker.io/ion606/browser:latest
|
|
ports: [{ containerPort: 7788 }]
|
|
env:
|
|
- { name: WEBUI_IP, value: "0.0.0.0" }
|
|
- { name: WEBUI_PORT, value: "7788" }
|
|
resources:
|
|
requests: { cpu: "250m", memory: "256Mi" }
|
|
limits: { cpu: "1", memory: "1Gi" } # hard cap
|
|
readinessProbe:
|
|
httpGet: { path: "/", port: 7788 }
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet: { path: "/", port: 7788 }
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata: { name: browser, namespace: ai }
|
|
spec:
|
|
selector: { app: browser }
|
|
ports:
|
|
- name: http
|
|
port: 7788
|
|
targetPort: 7788
|
|
nodePort: 30788
|
|
type: NodePort |