change timezone
This commit is contained in:
24
helm/homarr/dev/templates/localtime-volume-patch.yaml
Normal file
24
helm/homarr/dev/templates/localtime-volume-patch.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{{- if .Values.homarr.mountLocaltime }}
|
||||||
|
# Patch pour monter /etc/localtime depuis le nœud
|
||||||
|
# Ce template sera fusionné avec le Deployment créé par le chart Homarr
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: homarr
|
||||||
|
volumeMounts:
|
||||||
|
- name: localtime
|
||||||
|
mountPath: /etc/localtime
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: localtime
|
||||||
|
hostPath:
|
||||||
|
path: /etc/localtime
|
||||||
|
type: File
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
@@ -37,6 +37,20 @@ homarr:
|
|||||||
# -- homarr-database optional volumeClaimName to target specific PV
|
# -- homarr-database optional volumeClaimName to target specific PV
|
||||||
volumeClaimName: ""
|
volumeClaimName: ""
|
||||||
|
|
||||||
|
# Monter /etc/localtime depuis le nœud pour synchroniser la timezone
|
||||||
|
mountLocaltime: true
|
||||||
|
# Volumes supplémentaires (si supporté par le chart)
|
||||||
|
extraVolumes:
|
||||||
|
- name: localtime
|
||||||
|
hostPath:
|
||||||
|
path: /etc/localtime
|
||||||
|
type: File
|
||||||
|
# Montages de volumes supplémentaires (si supporté par le chart)
|
||||||
|
extraVolumeMounts:
|
||||||
|
- name: localtime
|
||||||
|
mountPath: /etc/localtime
|
||||||
|
readOnly: true
|
||||||
|
|
||||||
# Configuration pour le chart homarr (référence au secret créé par le template)
|
# Configuration pour le chart homarr (référence au secret créé par le template)
|
||||||
envSecrets:
|
envSecrets:
|
||||||
dbEncryption:
|
dbEncryption:
|
||||||
|
|||||||
Reference in New Issue
Block a user