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