aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml')
-rw-r--r--kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml35
1 files changed, 33 insertions, 2 deletions
diff --git a/kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml b/kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml
index 96f21f80e9..a06f87b5ba 100644
--- a/kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml
+++ b/kubernetes/portal-ng/components/portal-ng-ui/templates/deployment.yaml
@@ -36,13 +36,13 @@ spec:
livenessProbe:
httpGet:
path: /
- port: http
+ port: {{ .Values.service.internalPort}}
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
readinessProbe:
httpGet:
path: /
- port: http
+ port: {{ .Values.service.internalPort}}
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
volumeMounts:
@@ -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,18 @@ 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: version-json
+ configMap:
+ name: {{ include "common.fullname" . }}-version-json
+ - name: tmp-volume
+ emptyDir:
+ sizeLimit: 64Mi
+ - name: nginx-cache-volume
+ emptyDir:
+ sizeLimit: 64Mi