* fix(inventree): fix errors * update runas of init * no rofs * run init as root * fix typo * do some cleanup * lets test * more cleanup * nomount * rename * ughhh * hmm * encode * dont cd * root * update UI * change dir * back to default redis user * cleanup
21 lines
734 B
Smarty
21 lines
734 B
Smarty
{{/* Define the nginx container */}}
|
|
{{- define "inventree.nginx" -}}
|
|
image: {{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}
|
|
imagePullPolicy: '{{ .Values.nginxImage.pullPolicy }}'
|
|
securityContext:
|
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
|
|
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
|
|
ports:
|
|
- containerPort: {{ .Values.service.main.ports.main.port }}
|
|
name: main
|
|
volumeMounts:
|
|
- name: inventree-nginx
|
|
mountPath: "/etc/nginx/conf.d/default.conf"
|
|
subPath: nginx.conf
|
|
readOnly: true
|
|
- name: data
|
|
mountPath: "/var/www"
|
|
{{- end -}}
|