Harden deployment probes/fsGroup and align README runtime config
This commit is contained in:
@@ -36,14 +36,14 @@ This container provides a stable, tool-rich environment for the AI agent to:
|
|||||||
- name: clawdbox
|
- name: clawdbox
|
||||||
image: clawdbox:latest
|
image: clawdbox:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 22
|
- containerPort: 2222
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: claw-data
|
name: claw-data
|
||||||
volumes:
|
volumes:
|
||||||
- name: claw-data
|
- name: claw-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: claw-pvc
|
claimName: clawdbox-pvc
|
||||||
```
|
```
|
||||||
|
|
||||||
## Access
|
## Access
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ spec:
|
|||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: clawd-sa
|
serviceAccountName: clawd-sa
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-ssh
|
- name: setup-ssh
|
||||||
image: docker.io/alpine:latest
|
image: docker.io/alpine:latest
|
||||||
@@ -60,6 +62,25 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 2222
|
- containerPort: 2222
|
||||||
name: ssh
|
name: ssh
|
||||||
|
startupProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: ssh
|
||||||
|
failureThreshold: 30
|
||||||
|
periodSeconds: 5
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: ssh
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 2
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: ssh
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 20
|
||||||
|
timeoutSeconds: 2
|
||||||
|
failureThreshold: 3
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data-volume
|
name: data-volume
|
||||||
@@ -77,7 +98,6 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
fsGroup: 1000
|
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
capabilities:
|
capabilities:
|
||||||
add: ["CAP_AUDIT_WRITE"]
|
add: ["CAP_AUDIT_WRITE"]
|
||||||
|
|||||||
Reference in New Issue
Block a user