initial argo commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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 }]
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user