Skip to content

Commit

Permalink
Added securityContext to cronjob
Browse files Browse the repository at this point in the history
Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com>
  • Loading branch information
biswajit-9776 committed Aug 14, 2024
1 parent 066a34b commit 228fc62
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ spec:
name: script
subPath: script.sh
resources: {}
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
capabilities:
drop:
- ALL
volumes:
- name: script
configMap:
Expand Down

0 comments on commit 228fc62

Please sign in to comment.