* 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
20 lines
752 B
Smarty
20 lines
752 B
Smarty
{{/* Define the worker container */}}
|
|
{{- define "inventree.worker" -}}
|
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
|
imagePullPolicy: '{{ .Values.image.pullPolicy }}'
|
|
command: ["invoke", "worker"]
|
|
securityContext:
|
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
|
|
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: "/home/inventree/data"
|
|
envFrom:
|
|
- secretRef:
|
|
name: '{{ include "tc.common.names.fullname" . }}-inventree-secret'
|
|
- configMapRef:
|
|
name: '{{ include "tc.common.names.fullname" . }}-inventree-config'
|
|
{{- end -}}
|