forked from roger/k3s-cluster
fix hermes write folder
This commit is contained in:
@@ -125,6 +125,13 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: HERMES_HOME
|
- name: HERMES_HOME
|
||||||
value: /opt/data
|
value: /opt/data
|
||||||
|
# Hermes' file-write tool refuses any path outside HERMES_WRITE_SAFE_ROOT.
|
||||||
|
# When unset it defaults to HERMES_HOME (/opt/data), which blocks the
|
||||||
|
# agent's only GitOps remediation path (editing manifests under
|
||||||
|
# /workspace/k3s-cluster). Whitelist the whole filesystem — consistent
|
||||||
|
# with yolo:true, approvals.mode:off, and the agent having no k8s RBAC.
|
||||||
|
- name: HERMES_WRITE_SAFE_ROOT
|
||||||
|
value: "/"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /opt/data
|
mountPath: /opt/data
|
||||||
|
|||||||
Reference in New Issue
Block a user