File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,6 +116,16 @@ spec:
116116 mountPath : /etc/ssl/certs/java/cacerts
117117 subPath : cacerts
118118 {{- end }}
119+ {{- if .Values.securityContext.readOnlyRootFilesystem }}
120+ - name : run-volatile
121+ mountPath : /run/volatile
122+ - name : run-nginx
123+ mountPath : /run
124+ - name : tmp
125+ mountPath : /tmp
126+ - name : tmp
127+ mountPath : /var/tmp
128+ {{- end }}
119129 ports :
120130 - name : http
121131 containerPort : 1080
@@ -164,6 +174,13 @@ spec:
164174 secret :
165175 secretName : {{ .Values.java.customCacerts.cacertsSecretName }}
166176 {{- end }}
177+ {{- if .Values.securityContext.readOnlyRootFilesystem }}
178+ - name : run-volatile
179+ emptyDir : {}
180+ - name : tmp
181+ emptyDir :
182+ medium : Memory
183+ {{- end }}
167184 {{- with .Values.nodeSelector }}
168185 nodeSelector :
169186 {{- toYaml . | nindent 8 }}
You can’t perform that action at this time.
0 commit comments