mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
feat: TIMEZONE variable
This commit is contained in:
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: Europe/Paris
|
TZ: ${TIMEZONE}
|
||||||
CRON_MIN: "18,48"
|
CRON_MIN: "18,48"
|
||||||
DOMAIN: "https://freshrss.${SECRET_CLUSTER_DOMAIN}/"
|
DOMAIN: "https://freshrss.${SECRET_CLUSTER_DOMAIN}/"
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ spec:
|
|||||||
repository: ghcr.io/toboshii/hajimari
|
repository: ghcr.io/toboshii/hajimari
|
||||||
tag: v0.2.0
|
tag: v0.2.0
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
hajimari:
|
hajimari:
|
||||||
defaultEnable: true
|
defaultEnable: true
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
@@ -102,7 +102,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
ingressClassName: "nginx"
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
hosts:
|
hosts:
|
||||||
- host: "hajimari.${SECRET_CLUSTER_DOMAIN}"
|
- host: "hajimari.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
@@ -41,9 +41,9 @@ spec:
|
|||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
ingressClassName: "nginx"
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
# traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd
|
# traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd
|
||||||
hosts:
|
hosts:
|
||||||
- host: "homer.${SECRET_CLUSTER_DOMAIN}"
|
- host: "homer.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
@@ -77,8 +77,8 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
ingressClassName: "nginx"
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
# traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd
|
# traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd
|
||||||
hosts:
|
hosts:
|
||||||
- host: "homer-config.${SECRET_CLUSTER_DOMAIN}"
|
- host: "homer-config.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
|
@@ -33,7 +33,7 @@ spec:
|
|||||||
POSTGRES_USER: recipes
|
POSTGRES_USER: recipes
|
||||||
POSTGRES_PASSWORD: ${SECRET_RECIPES_DB_PASSWORD}
|
POSTGRES_PASSWORD: ${SECRET_RECIPES_DB_PASSWORD}
|
||||||
GUNICORN_MEDIA: "0"
|
GUNICORN_MEDIA: "0"
|
||||||
TIMEZONE: Europe/Paris
|
TIMEZONE: ${TIMEZONE}
|
||||||
FRACTION_PREF_DEFAULT: "0"
|
FRACTION_PREF_DEFAULT: "0"
|
||||||
COMMENT_PREF_DEFAULT: "1"
|
COMMENT_PREF_DEFAULT: "1"
|
||||||
SHOPPING_MIN_AUTOSYNC_INTERVAL: "5"
|
SHOPPING_MIN_AUTOSYNC_INTERVAL: "5"
|
||||||
@@ -64,8 +64,8 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
ingressClassName: "nginx"
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
# traefik.ingress.kubernetes.io/router.middlewares: networking-buffering-small@kubernetescrd
|
# traefik.ingress.kubernetes.io/router.middlewares: networking-buffering-small@kubernetescrd
|
||||||
hosts:
|
hosts:
|
||||||
- host: "recipes.${SECRET_CLUSTER_DOMAIN}"
|
- host: "recipes.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
|
@@ -28,7 +28,7 @@ spec:
|
|||||||
name: resilio-sync-claude
|
name: resilio-sync-claude
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "${TIMEZONE}"
|
||||||
- name: PUID
|
- name: PUID
|
||||||
value: "1026"
|
value: "1026"
|
||||||
- name: PGID
|
- name: PGID
|
||||||
@@ -62,7 +62,7 @@ spec:
|
|||||||
name: resilio-sync-helene
|
name: resilio-sync-helene
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "${TIMEZONE}"
|
||||||
- name: PUID
|
- name: PUID
|
||||||
value: "1027"
|
value: "1027"
|
||||||
- name: PGID
|
- name: PGID
|
||||||
@@ -206,7 +206,7 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/instance: resilio-sync
|
app.kubernetes.io/instance: resilio-sync
|
||||||
app.kubernetes.io/name: resilio-sync
|
app.kubernetes.io/name: resilio-sync
|
||||||
|
@@ -26,7 +26,7 @@ spec:
|
|||||||
DOMAIN: "https://vaultwarden.${SECRET_CLUSTER_DOMAIN}"
|
DOMAIN: "https://vaultwarden.${SECRET_CLUSTER_DOMAIN}"
|
||||||
ADMIN_TOKEN: ${SECRET_VAULTWARDEN_ADMIN_TOKEN}
|
ADMIN_TOKEN: ${SECRET_VAULTWARDEN_ADMIN_TOKEN}
|
||||||
DATABASE_URL: ${SECRET_VAULTWARDEN_DB_URL}
|
DATABASE_URL: ${SECRET_VAULTWARDEN_DB_URL}
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
DATA_FOLDER: "data"
|
DATA_FOLDER: "data"
|
||||||
SIGNUPS_ALLOWED: "false"
|
SIGNUPS_ALLOWED: "false"
|
||||||
WEBSOCKET_ENABLED: "true"
|
WEBSOCKET_ENABLED: "true"
|
||||||
@@ -54,7 +54,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
ingressClassName: "nginx"
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
hosts:
|
hosts:
|
||||||
- host: "vaultwarden.${SECRET_CLUSTER_DOMAIN}"
|
- host: "vaultwarden.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
repository: docker.io/blakeblackshear/frigate
|
repository: docker.io/blakeblackshear/frigate
|
||||||
tag: 0.10.1-amd64
|
tag: 0.10.1-amd64
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
MQTT_USER: "${SECRET_MQTT_USERNAME}"
|
MQTT_USER: "${SECRET_MQTT_USERNAME}"
|
||||||
MQTT_PASSWORD: ${SECRET_MQTT_PASSWORD}
|
MQTT_PASSWORD: ${SECRET_MQTT_PASSWORD}
|
||||||
service:
|
service:
|
||||||
|
@@ -22,7 +22,7 @@ spec:
|
|||||||
tag: 2022.5.5
|
tag: 2022.5.5
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
HASS_SECRET_URL: https://home-assistant.${SECRET_CLUSTER_DOMAIN}
|
HASS_SECRET_URL: https://home-assistant.${SECRET_CLUSTER_DOMAIN}
|
||||||
HASS_SECRET_LATITUDE: ${SECRET_HASS_LATITUDE}
|
HASS_SECRET_LATITUDE: ${SECRET_HASS_LATITUDE}
|
||||||
HASS_SECRET_LONGITUDE: ${SECRET_HASS_LONGITUDE}
|
HASS_SECRET_LONGITUDE: ${SECRET_HASS_LONGITUDE}
|
||||||
@@ -52,7 +52,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
ingressClassName: "nginx"
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
hosts:
|
hosts:
|
||||||
- host: "hass.${SECRET_CLUSTER_DOMAIN}"
|
- host: "hass.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
@@ -139,4 +139,8 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- { key: "feature.node.kubernetes.io/custom-rflink", operator: In, values: ["true"] }
|
- {
|
||||||
|
key: "feature.node.kubernetes.io/custom-rflink",
|
||||||
|
operator: In,
|
||||||
|
values: ["true"],
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,7 @@ spec:
|
|||||||
tag: 1.25.1
|
tag: 1.25.1
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: Europe/Paris
|
TZ: ${TIMEZONE}
|
||||||
ZIGBEE2MQTT_DATA: /data
|
ZIGBEE2MQTT_DATA: /data
|
||||||
|
|
||||||
config:
|
config:
|
||||||
@@ -105,4 +105,8 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- { key: "feature.node.kubernetes.io/custom-zigbee", operator: In, values: ["true"] }
|
- {
|
||||||
|
key: "feature.node.kubernetes.io/custom-zigbee",
|
||||||
|
operator: In,
|
||||||
|
values: ["true"],
|
||||||
|
}
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
tag: 6.11.0
|
tag: 6.11.0
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
@@ -70,4 +70,8 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- { key: "feature.node.kubernetes.io/custom-zwave", operator: In, values: ["true"] }
|
- {
|
||||||
|
key: "feature.node.kubernetes.io/custom-zwave",
|
||||||
|
operator: In,
|
||||||
|
values: ["true"],
|
||||||
|
}
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 568
|
runAsUser: 568
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 568
|
runAsUser: 568
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
tag: v4.4.0
|
tag: v4.4.0
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PHP_TZ: Europe/Paris
|
PHP_TZ: ${TIMEZONE}
|
||||||
DB_CONNECTION: pgsql
|
DB_CONNECTION: pgsql
|
||||||
DB_HOST: postgresql-kube.data.svc.cluster.local.
|
DB_HOST: postgresql-kube.data.svc.cluster.local.
|
||||||
DB_PORT: 5432
|
DB_PORT: 5432
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 568
|
runAsUser: 568
|
||||||
|
@@ -24,7 +24,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 568
|
runAsUser: 568
|
||||||
|
@@ -24,7 +24,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
|
@@ -22,7 +22,7 @@ spec:
|
|||||||
tag: v3.5.3
|
tag: v3.5.3
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
tag: v3.0.8.1507
|
tag: v3.0.8.1507
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 568
|
runAsUser: 568
|
||||||
runAsGroup: 568
|
runAsGroup: 568
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: Europe/Paris
|
TZ: ${TIMEZONE}
|
||||||
webUIPort: 8265
|
webUIPort: 8265
|
||||||
serverIP: 0.0.0.0
|
serverIP: 0.0.0.0
|
||||||
serverPort: 8266
|
serverPort: 8266
|
||||||
|
@@ -59,7 +59,7 @@ spec:
|
|||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "${TIMEZONE}"
|
||||||
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
|
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
|
||||||
value: "1"
|
value: "1"
|
||||||
command:
|
command:
|
||||||
|
@@ -251,7 +251,7 @@ spec:
|
|||||||
smtp:
|
smtp:
|
||||||
enabled: false
|
enabled: false
|
||||||
date_formats:
|
date_formats:
|
||||||
default_timezone: Europe/Paris
|
default_timezone: ${TIMEZONE}
|
||||||
feature_toggles:
|
feature_toggles:
|
||||||
enable: ngalert
|
enable: ngalert
|
||||||
ingress:
|
ingress:
|
||||||
|
@@ -28,7 +28,7 @@ spec:
|
|||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
# annotations:
|
# annotations:
|
||||||
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
||||||
subdomain: login
|
subdomain: login
|
||||||
|
|
||||||
tls:
|
tls:
|
||||||
@@ -41,7 +41,7 @@ spec:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: Europe/Paris
|
value: ${TIMEZONE}
|
||||||
|
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: config-custom
|
- name: config-custom
|
||||||
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: "Europe/Paris"
|
TZ: "${TIMEZONE}"
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
|
@@ -25,3 +25,4 @@ data:
|
|||||||
LOCAL_LAN_K3SWORKER1: 192.168.9.105
|
LOCAL_LAN_K3SWORKER1: 192.168.9.105
|
||||||
LOCAL_LAN_K3SWORKER2: 192.168.9.106
|
LOCAL_LAN_K3SWORKER2: 192.168.9.106
|
||||||
LOCAL_LAN_K3SWORKER3: 192.168.9.107
|
LOCAL_LAN_K3SWORKER3: 192.168.9.107
|
||||||
|
TIMEZONE: "Europe/Paris"
|
||||||
|
@@ -21,7 +21,7 @@ spec:
|
|||||||
configuration:
|
configuration:
|
||||||
startTime: "2:00"
|
startTime: "2:00"
|
||||||
endTime: "5:00"
|
endTime: "5:00"
|
||||||
timeZone: "Europe/Paris"
|
timeZone: "${TIMEZONE}"
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: "node-role.kubernetes.io/control-plane"
|
- key: "node-role.kubernetes.io/control-plane"
|
||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
|
@@ -6,7 +6,7 @@ skip_upgrade_packages: false
|
|||||||
skip_remove_packages: false
|
skip_remove_packages: false
|
||||||
|
|
||||||
# Timezone for the servers
|
# Timezone for the servers
|
||||||
timezone: "Europe/Paris"
|
timezone: "${TIMEZONE}"
|
||||||
|
|
||||||
# # Set custom ntp servers
|
# # Set custom ntp servers
|
||||||
# ntp_servers:
|
# ntp_servers:
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: locale | set timezone
|
- name: locale | set timezone
|
||||||
community.general.timezone:
|
community.general.timezone:
|
||||||
name: "{{ timezone | default('Europe/Paris') }}"
|
name: "{{ timezone | default('${TIMEZONE}') }}"
|
||||||
|
|
||||||
- name: locale | copy timesyncd config
|
- name: locale | copy timesyncd config
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
Reference in New Issue
Block a user