Introduce ReadOnlyRootFilesystem for Tornjak frontend (#110)
Signed-off-by: Mariusz Sabath <[email protected]>
This commit is contained in:
@@ -56,6 +56,8 @@ spec:
|
|||||||
mountPath: {{ .Values.workingDir }}/node_modules/.cache
|
mountPath: {{ .Values.workingDir }}/node_modules/.cache
|
||||||
- name: env
|
- name: env
|
||||||
mountPath: {{ .Values.workingDir }}/build/tmp
|
mountPath: {{ .Values.workingDir }}/build/tmp
|
||||||
|
- name: logs
|
||||||
|
mountPath: /opt/app-root/src/.npm/
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@@ -77,3 +79,5 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: env
|
- name: env
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: logs
|
||||||
|
emptyDir: {}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ tornjak-frontend:
|
|||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: true
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: [ALL]
|
drop: [ALL]
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user