mirror of
https://github.com/truenas/charts.git
synced 2026-04-26 19:42:14 +08:00
* ads `tinyMediaManager` to `community` train * change ci values * remove hostnet * perm container does not exist
54 lines
1.3 KiB
Smarty
54 lines
1.3 KiB
Smarty
{{- define "tmm.workload" -}}
|
|
workload:
|
|
tmm:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
securityContext:
|
|
fsGroup: {{ .Values.tmmID.group }}
|
|
containers:
|
|
tmm:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
add:
|
|
- SETUID
|
|
- SETGID
|
|
- CHOWN
|
|
fixedEnv:
|
|
PUID: {{ .Values.tmmID.user }}
|
|
env:
|
|
PASSWORD: {{ .Values.tmmConfig.password }}
|
|
{{ with .Values.tmmConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: 4000
|
|
path: /
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: 4000
|
|
path: /
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: 4000
|
|
path: /
|
|
{{- end -}}
|