fix(swarm): add runAsUser: 1001 to all swarm containers (#44)
This commit is contained in:
@@ -82,7 +82,8 @@ spec:
|
|||||||
restic snapshots 2>/dev/null || restic init
|
restic snapshots 2>/dev/null || restic init
|
||||||
|
|
||||||
restic backup \
|
restic backup \
|
||||||
/data/neuron-prod.db \
|
/data/neuron.db \
|
||||||
|
/data/mcp-sessions.db \
|
||||||
--tag neuron-prod \
|
--tag neuron-prod \
|
||||||
--host legion \
|
--host legion \
|
||||||
--exclude '*.db-shm' \
|
--exclude '*.db-shm' \
|
||||||
@@ -110,7 +111,8 @@ spec:
|
|||||||
restic snapshots 2>/dev/null || restic init
|
restic snapshots 2>/dev/null || restic init
|
||||||
|
|
||||||
restic backup \
|
restic backup \
|
||||||
/data/neuron-prod.db \
|
/data/neuron.db \
|
||||||
|
/data/mcp-sessions.db \
|
||||||
--tag neuron-prod \
|
--tag neuron-prod \
|
||||||
--host legion \
|
--host legion \
|
||||||
--exclude '*.db-shm' \
|
--exclude '*.db-shm' \
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user