Skip to content

Commit

Permalink
Fix non-root deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPius committed Aug 31, 2024
1 parent b62e72d commit 639c80f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
labels:
app.kubernetes.io/name: datavirke
spec:
securityContext:
runAsUser: 1252
runAsGroup: 1252
fsGroup: 1252
containers:
- name: web
image: registry.kronform.pius.dev/datavirke.dk/datavirke.dk:main
Expand All @@ -26,7 +30,7 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
runAsNonRoot: false
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
---
Expand Down

0 comments on commit 639c80f

Please sign in to comment.