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:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "jellyfin.name" . }}
|
app.kubernetes.io/name: {{ include "jellyfin.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- with .Values.extraPodLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.extraPodAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.enableDLNA }}
|
{{- if .Values.enableDLNA }}
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
@@ -28,6 +35,10 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
{{ if .Values.extraEnvVars }}
|
||||||
|
env:
|
||||||
|
{{- toYaml .Values.extraEnvVars | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8096
|
containerPort: 8096
|
||||||
@@ -63,6 +74,9 @@ spec:
|
|||||||
{{- if .Values.extraVolumeMounts }}
|
{{- if .Values.extraVolumeMounts }}
|
||||||
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
|
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.extraContainers }}
|
||||||
|
{{- toYaml .Values.extraContainers | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.resources | indent 12 }}
|
{{ toYaml .Values.resources | indent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -122,3 +122,13 @@ extraVolumeMounts: []
|
|||||||
#- mountPath: /dev/dri/renderD129
|
#- mountPath: /dev/dri/renderD129
|
||||||
# name: 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