Skip to content

Commit

Permalink
non-root user has been added in the deployment.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
HrisyToteva committed Jan 8, 2024
1 parent 9efa6ea commit 0767666
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions k8s/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
containers:
- name: k8s-janitor
image: 579478677147.dkr.ecr.eu-central-1.amazonaws.com/ded/k8s-janitor:$(Build.BuildId)
securityContext:
runAsUser: 10001
runAsGroup: 3000
runAsNonRoot: true
allowPrivilegeEscalation: false
ports:
- containerPort: 8081
name: web
Expand Down

0 comments on commit 0767666

Please sign in to comment.