ability to add optional env vars, labels and annotations (#9)
This commit is contained in:
1 parent
2676ee27c9
commit
af0797c8bc
2 files changed
+24
No files matched your search
@@ -20,6 +20,13 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "jellyfin.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- with .Values.extraPodLabels }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.extraPodAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.enableDLNA }}
|
||||
hostNetwork: true
|
||||
@@ -28,6 +35,10 @@ spec:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
{{ if .Values.extraEnvVars }}
|
||||
env:
|
||||
{{- toYaml .Values.extraEnvVars | nindent 12 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8096
|
||||
@@ -63,6 +74,9 @@ spec:
|
||||
{{- if .Values.extraVolumeMounts }}
|
||||
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.extraContainers }}
|
||||
{{- toYaml .Values.extraContainers | nindent 10 }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 12 }}
|
||||
volumes:
|
||||
|
||||
@@ -122,3 +122,13 @@ extraVolumeMounts: []
|
||||
#- mountPath: /dev/dri/renderD129
|
||||
# name: renderD129
|
||||
|
||||
extraPodLabels: {}
|
||||
|
||||
extraEnvVars: []
|
||||
#- name: MY_ENV_VAR
|
||||
# value: my-env-var-value
|
||||
|
||||
# additional annotations applied to the pod
|
||||
extraPodAnnotations: {}
|
||||
|
||||
extraContainers: {}
|
||||
Reference in new issue
Block a user