42 lines
1.6 KiB
Smarty
42 lines
1.6 KiB
Smarty
|
{{/* Define the web container */}}
|
||
|
{{- define "immich.web" -}}
|
||
|
image: {{ .Values.imageWeb.repository }}:{{ .Values.imageWeb.tag }}
|
||
|
imagePullPolicy: {{ .Values.imageWeb.pullPolicy }}
|
||
|
securityContext:
|
||
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
||
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
||
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
|
||
|
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
|
||
|
command:
|
||
|
- /bin/sh
|
||
|
- -c
|
||
|
- chmod +x ./entrypoint.sh && ./entrypoint.sh
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: '{{ include "tc.common.names.fullname" . }}-common-config'
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 3000
|
||
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
||
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
||
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
||
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 3000
|
||
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
||
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
||
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
||
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
||
|
startupProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 3000
|
||
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
||
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
||
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
||
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
||
|
{{- end -}}
|