Files
charts/test/emby/1.0.13/templates/deployment.yaml
T
sonicaj 101390ba6c Upgraded catalog item(s)
This commit upgrades chia, photoprism, home-assistant, storj, nextcloud, emby catalog item(s).
2022-11-06 08:00:14 +00:00

75 lines
3.1 KiB
YAML

{{ include "common.storage.hostPathValidate" .Values }}
{{ include "common.deployment.common_config" . | nindent 0 }}
spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
template: {{ include "common.deployment.pod.metadata" . | nindent 4 }}
spec:
{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
hostname: {{ template "common.names.fullname" . }}
containers:
- name: {{ .Chart.Name }}
{{ include "common.resources.limitation" . | nindent 10 }}
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }}
mountPath: {{ $hostPathConfiguration.mountPath }}
{{ if $hostPathConfiguration.readOnly }}
readOnly: {{ $hostPathConfiguration.readOnly }}
{{ end }}
{{ end }}
ports:
- name: emby
protocol: TCP
containerPort: 8096
{{- if .Values.hostNetwork }}
hostPort: {{ .Values.embyServerHttp.port }}
{{- end }}
- name: emby-dlna
protocol: UDP
containerPort: 1900
- name: emby-lnd
protocol: UDP
containerPort: 7359
env:
- name: KUBE_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
{{ $envList := (default list .Values.environmentVariables) }}
{{ if and .Values.gpuConfiguration (hasKey .Values.gpuConfiguration "nvidia.com/gpu") (gt (get .Values.gpuConfiguration "nvidia.com/gpu" | toDecimal) 0) }}
{{ $envList = mustAppend $envList (dict "name" "NVIDIA_DRIVER_CAPABILITIES" "value" "all") }}
{{ end }}
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
readinessProbe:
httpGet:
path: /emby/System/Ping
port: 8096
failureThreshold: 5
periodSeconds: 15
livenessProbe:
httpGet:
path: /emby/System/Ping
port: 8096
failureThreshold: 5
periodSeconds: 15
startupProbe:
httpGet:
path: /emby/System/Ping
port: 8096
initialDelaySeconds: 5
failureThreshold: 40
periodSeconds: 15
volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }}
hostPath:
path: {{ $hostPathConfiguration.hostPath }}
{{ end }}