Apply non-root user to longhorn-ui by adopting the change from
@@ -19,14 +19,26 @@ spec:
- name: longhorn-ui
image: longhornio/longhorn-ui:master-head
imagePullPolicy: IfNotPresent
- securityContext:
- runAsUser: 0
+ volumeMounts:
+ - 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"
+ volumes:
+ - emptyDir: {}
+ name: nginx-cache
+ - emptyDir: {}
+ name: nginx-config
+ - emptyDir: {}
+ name: var-run
# imagePullSecrets:
# - name: ""
# priorityClassName:
