[PORTALNG] Support readonly file system in portal-ng-ui
[oom.git] / kubernetes / portal-ng / components / portal-ng-ui / templates / deployment.yaml
index 6a16384..4d467e0 100644 (file)
@@ -53,6 +53,22 @@ spec:
             mountPath: {{ .Values.nginx.tilesPath }}
             subPath: tiles.json
             readOnly: true
+          - name: nginx-config
+            mountPath: /etc/nginx/conf.d/default.conf
+            subPath: default.conf
+            readOnly: true
+          - name: env-js
+            mountPath: /usr/share/nginx/html/assets/env.js
+            subPath: env.js
+            readOnly: true
+          - name: version-json
+            mountPath: /usr/share/nginx/html/assets/version.json
+            subPath: version.json
+            readOnly: true
+          - name: tmp-volume
+            mountPath: /tmp
+          - name: nginx-cache-volume
+            mountPath: /var/cache/nginx
           resources: {{ include "common.resources" . | nindent 12 }}
         {{- with .Values.nodeSelector }}
         nodeSelector:
@@ -76,3 +92,15 @@ spec:
             items:
             - key: tiles.json
               path: tiles.json
+        - name: nginx-config
+          configMap:
+            name: {{ include "common.fullname" . }}-nginx-config
+        - name: env-js
+          configMap:
+            name: {{ include "common.fullname" . }}-env-js
+        - name: tmp-volume
+          emptyDir:
+            sizeLimit: 64Mi
+        - name: nginx-cache-volume
+          emptyDir:
+            sizeLimit: 64Mi