adding cache-volume to longhorn-ui

Signed-off-by: Matthew Mattox <Matt.Mattox@suse.com>
This commit is contained in:
Matthew Mattox 2022-02-24 04:04:19 -06:00 committed by David Ko
parent d970383384
commit c7ed614cbc
2 changed files with 30 additions and 2 deletions

View File

@ -20,13 +20,27 @@ spec:
image: {{ template "registry_url" . }}{{ .Values.image.longhorn.ui.repository }}:{{ .Values.image.longhorn.ui.tag }}
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
runAsUser: 1000
volumeMounts:
- mountPath: /var/cache/nginx/
name: cache-volume
- mountPath: /var/config/nginx/
name: cache-volume
- mountPath: /var/run/
name: cache-volume
ports:
- containerPort: 8000
name: http
env:
- name: LONGHORN_MANAGER_IP
value: "http://longhorn-backend:9500"
securityContext:
fsGroup: 2000
runAsGroup: 3000
runAsUser: 1000
volumes:
- emptyDir: {}
name: cache-volume
{{- if .Values.privateRegistry.registrySecret }}
imagePullSecrets:
- name: {{ .Values.privateRegistry.registrySecret }}

View File

@ -1126,13 +1126,27 @@ spec:
image: longhornio/longhorn-ui:v1.2.3
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
runAsUser: 1000
volumeMounts:
- mountPath: /var/cache/nginx/
name: cache-volume
- mountPath: /var/config/nginx/
name: cache-volume
- mountPath: /var/run/
name: cache-volume
ports:
- containerPort: 8000
name: http
env:
- name: LONGHORN_MANAGER_IP
value: "http://longhorn-backend:9500"
securityContext:
fsGroup: 2000
runAsGroup: 3000
runAsUser: 1000
volumes:
- emptyDir: {}
name: cache-volume
# imagePullSecrets:
# - name: ""
# priorityClassName: