diff --git a/chart/templates/deployment-ui.yaml b/chart/templates/deployment-ui.yaml index 78ae267..d0852fc 100644 --- a/chart/templates/deployment-ui.yaml +++ b/chart/templates/deployment-ui.yaml @@ -19,28 +19,26 @@ spec: - name: longhorn-ui image: {{ template "registry_url" . }}{{ .Values.image.longhorn.ui.repository }}:{{ .Values.image.longhorn.ui.tag }} imagePullPolicy: IfNotPresent - securityContext: - runAsUser: 1000 volumeMounts: - - mountPath: /var/cache/nginx/ - name: cache-volume - - mountPath: /var/config/nginx/ - name: cache-volume - - mountPath: /var/run/ - name: cache-volume + - name : nginx-cache + mountPath: /var/cache/nginx/ + - name : nginx-config + mountPath: /var/config/nginx/ + - name: var-run + mountPath: /var/run/ 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 + name: nginx-cache + - emptyDir: {} + name: nginx-config + - emptyDir: {} + name: var-run {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - name: {{ .Values.privateRegistry.registrySecret }} diff --git a/deploy/longhorn.yaml b/deploy/longhorn.yaml index 92a8547..e15dbb9 100644 --- a/deploy/longhorn.yaml +++ b/deploy/longhorn.yaml @@ -1125,28 +1125,26 @@ spec: - name: longhorn-ui image: longhornio/longhorn-ui:v1.2.3 imagePullPolicy: IfNotPresent - securityContext: - runAsUser: 1000 volumeMounts: - - mountPath: /var/cache/nginx/ - name: cache-volume - - mountPath: /var/config/nginx/ - name: cache-volume - - mountPath: /var/run/ - name: cache-volume + - name : nginx-cache + mountPath: /var/cache/nginx/ + - name : nginx-config + mountPath: /var/config/nginx/ + - name: var-run + mountPath: /var/run/ 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 + name: nginx-cache + - emptyDir: {} + name: nginx-config + - emptyDir: {} + name: var-run # imagePullSecrets: # - name: "" # priorityClassName: