Introduce ReadOnlyRootFilesystem for Tornjak frontend (#110)

Signed-off-by: Mariusz Sabath <[email protected]>
This commit is contained in:
Mariusz Sabath
2023-11-16 15:47:04 -08:00
committed by GitHub
parent 911f51b679
commit c9885de539
2 changed files with 5 additions and 1 deletions
@@ -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 }}
@@ -77,3 +79,5 @@ spec:
emptyDir: {}
- name: env
emptyDir: {}
- name: logs
emptyDir: {}
+1 -1
View File
@@ -124,7 +124,7 @@ tornjak-frontend:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
readOnlyRootFilesystem: false
readOnlyRootFilesystem: true
capabilities:
drop: [ALL]
seccompProfile: