mirror of
https://github.com/truenas/charts.git
synced 2026-05-04 13:21:19 +08:00
* initial commit * add upg strategy * some metadata * add template for service * add values * typo * add more * add metadata * add readme * add questions * remove quotes
52 lines
1.7 KiB
Smarty
52 lines
1.7 KiB
Smarty
{{- define "metube.workload" -}}
|
|
workload:
|
|
metube:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.metubeNetwork.hostNetwork }}
|
|
containers:
|
|
metube:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: {{ .Values.metubeRunAs.user }}
|
|
runAsGroup: {{ .Values.metubeRunAs.group }}
|
|
env:
|
|
PORT: {{ .Values.metubeNetwork.webPort }}
|
|
DOWNLOAD_DIR: /downloads
|
|
STATE_DIR: /downloads/.metube
|
|
DEFAULT_THEME: auto
|
|
{{ with .Values.metubeConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.metubeNetwork.webPort }}
|
|
path: /
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.metubeNetwork.webPort }}
|
|
path: /
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.metubeNetwork.webPort }}
|
|
path: /
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
|
"UID" .Values.metubeRunAs.user
|
|
"GID" .Values.metubeRunAs.group
|
|
"mode" "check"
|
|
"type" "init") | nindent 8 }}
|
|
{{- end -}}
|