|
@@ -27,7 +27,7 @@ spec:
|
|
|
{{- include "common.labels.selectorLabels" . | nindent 8 }}
|
|
|
annotations: {{ include "common.annotations" . | nindent 8 }}
|
|
|
spec:
|
|
|
- hostNetwork: false
|
|
|
+ hostNetwork: {{ .Values.host_network }}
|
|
|
{{- if hasKey .Values "global" }}
|
|
|
{{- if hasKey .Values.global "ixChartContext" }}
|
|
|
{{- if .Values.global.ixChartContext.addNvidiaRuntimeClass }}
|
|
@@ -46,11 +46,11 @@ spec:
|
|
|
{{ end }}
|
|
|
ports:
|
|
|
- name: web
|
|
|
- containerPort: 2342
|
|
|
+ containerPort: {{ .Values.web_port }}
|
|
|
readinessProbe:
|
|
|
httpGet:
|
|
|
path: /
|
|
|
- port: 2342
|
|
|
+ port: {{ .Values.web_port }}
|
|
|
initialDelaySeconds: 10
|
|
|
periodSeconds: 10
|
|
|
timeoutSeconds: 5
|
|
@@ -59,7 +59,7 @@ spec:
|
|
|
livenessProbe:
|
|
|
httpGet:
|
|
|
path: /
|
|
|
- port: 2342
|
|
|
+ port: {{ .Values.web_port }}
|
|
|
initialDelaySeconds: 10
|
|
|
periodSeconds: 10
|
|
|
timeoutSeconds: 5
|
|
@@ -68,7 +68,7 @@ spec:
|
|
|
startupProbe:
|
|
|
httpGet:
|
|
|
path: /
|
|
|
- port: 2342
|
|
|
+ port: {{ .Values.web_port }}
|
|
|
initialDelaySeconds: 10
|
|
|
periodSeconds: 5
|
|
|
timeoutSeconds: 2
|
|
@@ -77,6 +77,7 @@ spec:
|
|
|
env:
|
|
|
{{ $secretName := (include "common.names.fullname" .) }}
|
|
|
{{ $envList := (default list .Values.environmentVariables) }}
|
|
|
+ {{ $envList = mustAppend $envList (dict "name" "PHOTOPRISM_HTTP_PORT" "value" .Values.web_port) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "PHOTOPRISM_ADMIN_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }}
|
|
|
{{ if .Values.public }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "PHOTOPRISM_PUBLIC" "value" "true") }}
|