Skip to content

Commit

Permalink
Introduce ReadOnlyRootFilesystem for Tornjak frontend (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Mariusz Sabath <[email protected]>
  • Loading branch information
mrsabath authored Nov 16, 2023
1 parent 911f51b commit c9885de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
mountPath: {{ .Values.workingDir }}/node_modules/.cache
- name: env
mountPath: {{ .Values.workingDir }}/build/tmp
- name: logs
mountPath: /opt/app-root/src/.npm/
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -77,3 +79,5 @@ spec:
emptyDir: {}
- name: env
emptyDir: {}
- name: logs
emptyDir: {}
2 changes: 1 addition & 1 deletion examples/production/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ tornjak-frontend:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
readOnlyRootFilesystem: false
readOnlyRootFilesystem: true
capabilities:
drop: [ALL]
seccompProfile:
Expand Down

0 comments on commit c9885de

Please sign in to comment.