forked from zeroclaw-labs/zeroclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment-sample.yaml
More file actions
88 lines (88 loc) · 2.38 KB
/
deployment-sample.yaml
File metadata and controls
88 lines (88 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
apiVersion: apps/v1
kind: Deployment
metadata:
name: zeroclaw
namespace: zeroclaw
labels:
app.kubernetes.io/name: zeroclaw
app.kubernetes.io/part-of: zeroclaw
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: zeroclaw
template:
metadata:
labels:
app.kubernetes.io/name: zeroclaw
app.kubernetes.io/part-of: zeroclaw
spec:
containers:
- name: zeroclaw
image: ghcr.io/zeroclaw-labs/zeroclaw:latest
args: ["daemon"]
ports:
- name: gateway
containerPort: 42617
protocol: TCP
env:
- name: API_KEY
valueFrom:
secretKeyRef:
name: zeroclaw-api-key
key: api-key
- name: LANG
value: "C.UTF-8"
- name: HOME
value: "/zeroclaw-data"
- name: ZEROCLAW_WORKSPACE
value: "/zeroclaw-data/workspace"
- name: ZEROCLAW_GATEWAY_PORT
value: "42617"
volumeMounts:
- name: state
mountPath: /zeroclaw-data/.zeroclaw
- name: config
mountPath: /zeroclaw-data/.zeroclaw/config.toml
subPath: config.toml
readOnly: true
- name: workspace
mountPath: /zeroclaw-data/workspace
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "2"
livenessProbe:
httpGet:
path: /health
port: gateway
initialDelaySeconds: 10
periodSeconds: 60
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /health
port: gateway
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
volumes:
- name: config
configMap:
name: zeroclaw-config
- name: state
emptyDir: {}
- name: workspace
emptyDir: {}