diff --git a/kubernetes/apps/home/atuin/app/helmrelease.yaml b/kubernetes/apps/home/atuin/app/helmrelease.yaml index c4dfacf5b..e33e7a929 100644 --- a/kubernetes/apps/home/atuin/app/helmrelease.yaml +++ b/kubernetes/apps/home/atuin/app/helmrelease.yaml @@ -48,7 +48,7 @@ spec: ATUIN_METRICS__ENABLE: true ATUIN_METRICS__HOST: 0.0.0.0 ATUIN_METRICS__PORT: &metricsPort 8081 - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: *envFrom args: - server diff --git a/kubernetes/apps/home/home-assistant/app/helmrelease.yaml b/kubernetes/apps/home/home-assistant/app/helmrelease.yaml index 9ff0a8bcd..ff06a2139 100644 --- a/kubernetes/apps/home/home-assistant/app/helmrelease.yaml +++ b/kubernetes/apps/home/home-assistant/app/helmrelease.yaml @@ -36,7 +36,7 @@ spec: HOME_ASSISTANT_PURGE_KEEP_DAYS: 30 HOME_ASSISTANT_TRUSTED_PROXIES: 10.244.0.0/16 HOME_ASSISTANT_UNIT_SYSTEM: imperial - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: - secretRef: name: home-assistant-secret diff --git a/kubernetes/apps/home/zigbee2mqtt/app/helmrelease.yaml b/kubernetes/apps/home/zigbee2mqtt/app/helmrelease.yaml index f13c24c24..230ba6390 100644 --- a/kubernetes/apps/home/zigbee2mqtt/app/helmrelease.yaml +++ b/kubernetes/apps/home/zigbee2mqtt/app/helmrelease.yaml @@ -32,7 +32,7 @@ spec: repository: ghcr.io/koenkk/zigbee2mqtt tag: 2.0.0@sha256:6105a3a01a66bbfb98909a7c309d0707ec7b41728ac15d399747077225231545 env: - TZ: America/Chicago + TZ: ${TIMEZONE} ZIGBEE2MQTT_DATA: /config ZIGBEE2MQTT_CONFIG_ADVANCED_LAST_SEEN: ISO_8601 ZIGBEE2MQTT_CONFIG_ADVANCED_LOG_LEVEL: info # debug diff --git a/kubernetes/apps/kube-system/fstrim/app/helmrelease.yaml b/kubernetes/apps/kube-system/fstrim/app/helmrelease.yaml index d4643dcc5..ce56d646b 100644 --- a/kubernetes/apps/kube-system/fstrim/app/helmrelease.yaml +++ b/kubernetes/apps/kube-system/fstrim/app/helmrelease.yaml @@ -27,7 +27,7 @@ spec: type: cronjob cronjob: schedule: 0 0 * * 1 - timeZone: America/Chicago + timeZone: ${TIMEZONE} parallelism: 3 # Set to my total number of nodes successfulJobsHistory: 1 failedJobsHistory: 1 diff --git a/kubernetes/apps/media/autobrr/app/helmrelease.yaml b/kubernetes/apps/media/autobrr/app/helmrelease.yaml index 66af5fd91..4fdbe1d36 100644 --- a/kubernetes/apps/media/autobrr/app/helmrelease.yaml +++ b/kubernetes/apps/media/autobrr/app/helmrelease.yaml @@ -44,7 +44,7 @@ spec: AUTOBRR__HOST: 0.0.0.0 AUTOBRR__PORT: &port 7474 AUTOBRR__LOG_LEVEL: INFO - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: *envFrom probes: liveness: &probes diff --git a/kubernetes/apps/media/bazarr/app/helmrelease.yaml b/kubernetes/apps/media/bazarr/app/helmrelease.yaml index 28cb46df7..d01bd85b2 100644 --- a/kubernetes/apps/media/bazarr/app/helmrelease.yaml +++ b/kubernetes/apps/media/bazarr/app/helmrelease.yaml @@ -33,7 +33,7 @@ spec: tag: 1.5.1@sha256:bd7187f0fad40eef4136ae30591dc47417998e90a4b88971b78d72bfab772885 env: BAZARR__PORT: &port 6767 - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: - secretRef: name: bazarr-secret diff --git a/kubernetes/apps/media/cross-seed/app/helmrelease.yaml b/kubernetes/apps/media/cross-seed/app/helmrelease.yaml index 6d45b7976..de5103093 100644 --- a/kubernetes/apps/media/cross-seed/app/helmrelease.yaml +++ b/kubernetes/apps/media/cross-seed/app/helmrelease.yaml @@ -35,7 +35,7 @@ spec: - daemon env: CROSS_SEED_PORT: &port 2468 - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: - secretRef: name: cross-seed-secret diff --git a/kubernetes/apps/media/overseerr/app/helmrelease.yaml b/kubernetes/apps/media/overseerr/app/helmrelease.yaml index efa6fe243..36102a3ea 100644 --- a/kubernetes/apps/media/overseerr/app/helmrelease.yaml +++ b/kubernetes/apps/media/overseerr/app/helmrelease.yaml @@ -32,7 +32,7 @@ spec: env: LOG_LEVEL: info PORT: &port 5055 - TZ: America/Chicago + TZ: ${TIMEZONE} probes: liveness: &probes enabled: true diff --git a/kubernetes/apps/media/plex/app/helmrelease.yaml b/kubernetes/apps/media/plex/app/helmrelease.yaml index d9f098a0d..706d8348e 100644 --- a/kubernetes/apps/media/plex/app/helmrelease.yaml +++ b/kubernetes/apps/media/plex/app/helmrelease.yaml @@ -32,7 +32,7 @@ spec: env: PLEX_ADVERTISE_URL: https://{{ .Release.Name }}.ktwo.io:443 PLEX_NO_AUTH_NETWORKS: 192.168.1.0/24 - TZ: America/Chicago + TZ: ${TIMEZONE} probes: liveness: &probes enabled: true diff --git a/kubernetes/apps/media/prowlarr/app/helmrelease.yaml b/kubernetes/apps/media/prowlarr/app/helmrelease.yaml index 5b4215f50..884b6c132 100644 --- a/kubernetes/apps/media/prowlarr/app/helmrelease.yaml +++ b/kubernetes/apps/media/prowlarr/app/helmrelease.yaml @@ -47,7 +47,7 @@ spec: PROWLARR__LOG__LEVEL: info PROWLARR__SERVER__PORT: &port 9696 PROWLARR__UPDATE__BRANCH: develop - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: *envFrom probes: liveness: &probes diff --git a/kubernetes/apps/media/qbittorrent/app/helmrelease.yaml b/kubernetes/apps/media/qbittorrent/app/helmrelease.yaml index 9dff09fd9..f7963a12d 100644 --- a/kubernetes/apps/media/qbittorrent/app/helmrelease.yaml +++ b/kubernetes/apps/media/qbittorrent/app/helmrelease.yaml @@ -32,7 +32,7 @@ spec: env: QBT_TORRENTING_PORT: &bittorrentPort 50413 QBT_WEBUI_PORT: &port 8080 - TZ: America/Chicago + TZ: ${TIMEZONE} probes: liveness: &probes enabled: true diff --git a/kubernetes/apps/media/qbittorrent/tools/qbtools/helmrelease.yaml b/kubernetes/apps/media/qbittorrent/tools/qbtools/helmrelease.yaml index 908ae5e61..d5e16f2fe 100644 --- a/kubernetes/apps/media/qbittorrent/tools/qbtools/helmrelease.yaml +++ b/kubernetes/apps/media/qbittorrent/tools/qbtools/helmrelease.yaml @@ -27,7 +27,7 @@ spec: type: cronjob cronjob: schedule: "@hourly" - timeZone: &timeZone America/Chicago + timeZone: &timeZone ${TIMEZONE} concurrencyPolicy: Forbid successfulJobsHistory: 1 failedJobsHistory: 1 diff --git a/kubernetes/apps/media/radarr/app/helmrelease.yaml b/kubernetes/apps/media/radarr/app/helmrelease.yaml index fcc6f6c49..4d01441bb 100644 --- a/kubernetes/apps/media/radarr/app/helmrelease.yaml +++ b/kubernetes/apps/media/radarr/app/helmrelease.yaml @@ -47,7 +47,7 @@ spec: RADARR__LOG__LEVEL: info RADARR__SERVER__PORT: &port 7878 RADARR__UPDATE__BRANCH: develop - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: *envFrom probes: liveness: &probes diff --git a/kubernetes/apps/media/recyclarr/app/helmrelease.yaml b/kubernetes/apps/media/recyclarr/app/helmrelease.yaml index 45f68e401..dacf097a2 100644 --- a/kubernetes/apps/media/recyclarr/app/helmrelease.yaml +++ b/kubernetes/apps/media/recyclarr/app/helmrelease.yaml @@ -27,7 +27,7 @@ spec: type: cronjob cronjob: schedule: "@daily" - timeZone: &timeZone America/Chicago + timeZone: &timeZone ${TIMEZONE} concurrencyPolicy: Forbid successfulJobsHistory: 1 failedJobsHistory: 1 diff --git a/kubernetes/apps/media/sabnzbd/app/helmrelease.yaml b/kubernetes/apps/media/sabnzbd/app/helmrelease.yaml index 499c10e3b..6d44452c1 100644 --- a/kubernetes/apps/media/sabnzbd/app/helmrelease.yaml +++ b/kubernetes/apps/media/sabnzbd/app/helmrelease.yaml @@ -41,7 +41,7 @@ spec: sabnzbd.media.svc.cluster.local, {{ .Release.Name }}.ktwo.io, sab.ktwo.io - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: - secretRef: name: sabnzbd-secret diff --git a/kubernetes/apps/media/sonarr/app/helmrelease.yaml b/kubernetes/apps/media/sonarr/app/helmrelease.yaml index 746256107..26776b17b 100644 --- a/kubernetes/apps/media/sonarr/app/helmrelease.yaml +++ b/kubernetes/apps/media/sonarr/app/helmrelease.yaml @@ -47,7 +47,7 @@ spec: SONARR__LOG__LEVEL: info SONARR__SERVER__PORT: &port 8989 SONARR__UPDATE__BRANCH: develop - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: *envFrom probes: liveness: &probes diff --git a/kubernetes/apps/media/tautulli/app/helmrelease.yaml b/kubernetes/apps/media/tautulli/app/helmrelease.yaml index 54733a695..26a5f960c 100644 --- a/kubernetes/apps/media/tautulli/app/helmrelease.yaml +++ b/kubernetes/apps/media/tautulli/app/helmrelease.yaml @@ -31,7 +31,7 @@ spec: tag: 2.15.0@sha256:fa63a01dae9f11578d585b7b704b0e4474ddf783f5d7b55423de8a671a76bbda env: TAUTULLI__PORT: &port 8181 - TZ: America/Chicago + TZ: ${TIMEZONE} probes: liveness: &probes enabled: true diff --git a/kubernetes/apps/media/unpackerr/app/helmrelease.yaml b/kubernetes/apps/media/unpackerr/app/helmrelease.yaml index cdd31a1b1..469a570f3 100644 --- a/kubernetes/apps/media/unpackerr/app/helmrelease.yaml +++ b/kubernetes/apps/media/unpackerr/app/helmrelease.yaml @@ -32,7 +32,7 @@ spec: repository: ghcr.io/unpackerr/unpackerr tag: 0.14.5@sha256:dc72256942ce50d1c8a1aeb5aa85b6ae2680a36eefd2182129d8d210fce78044 env: - TZ: America/Chicago + TZ: ${TIMEZONE} UN_WEBSERVER_METRICS: true UN_WEBSERVER_LOG_FILE: /logs/webserver.log UN_ACTIVITY: true diff --git a/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml b/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml index e17b0e17c..bfc9fa8c2 100644 --- a/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml +++ b/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml @@ -61,7 +61,7 @@ spec: GATUS_WEB_PORT: &port 80 GATUS_CONFIG_PATH: /config GATUS_DELAY_START_SECONDS: 5 - TZ: America/Chicago + TZ: ${TIMEZONE} envFrom: *envFrom probes: liveness: &probes diff --git a/kubernetes/apps/monitoring/kube-prometheus-stack/tools/alertmanager-silencer/helmrelease.yaml b/kubernetes/apps/monitoring/kube-prometheus-stack/tools/alertmanager-silencer/helmrelease.yaml index 3a2e76fe9..ca57cefc6 100644 --- a/kubernetes/apps/monitoring/kube-prometheus-stack/tools/alertmanager-silencer/helmrelease.yaml +++ b/kubernetes/apps/monitoring/kube-prometheus-stack/tools/alertmanager-silencer/helmrelease.yaml @@ -27,7 +27,7 @@ spec: type: cronjob cronjob: schedule: "@daily" - timeZone: America/Chicago + timeZone: ${TIMEZONE} concurrencyPolicy: Forbid successfulJobsHistory: 1 failedJobsHistory: 1 diff --git a/kubernetes/apps/monitoring/unpoller/app/helmrelease.yaml b/kubernetes/apps/monitoring/unpoller/app/helmrelease.yaml index 92bbdf706..d723d87c2 100644 --- a/kubernetes/apps/monitoring/unpoller/app/helmrelease.yaml +++ b/kubernetes/apps/monitoring/unpoller/app/helmrelease.yaml @@ -32,7 +32,7 @@ spec: repository: ghcr.io/unpoller/unpoller tag: v2.13.1@sha256:2376aff5e18b8f9fdd618becc2ef668ce31deb4c0e74acc5bea88e6c20c23a39 env: - TZ: America/Chicago + TZ: ${TIMEZONE} UP_UNIFI_DEFAULT_ROLE: k8s-gitops UP_UNIFI_DEFAULT_URL: https://unifi.internal UP_UNIFI_DEFAULT_VERIFY_SSL: false diff --git a/kubernetes/flux/config/cluster.yaml b/kubernetes/flux/config/cluster.yaml index a557db114..98387596a 100644 --- a/kubernetes/flux/config/cluster.yaml +++ b/kubernetes/flux/config/cluster.yaml @@ -58,7 +58,7 @@ spec: substituteFrom: - kind: ConfigMap name: cluster-settings - optional: true + optional: false - kind: Secret name: cluster-secrets optional: true @@ -77,7 +77,7 @@ spec: substituteFrom: - kind: ConfigMap name: cluster-settings - optional: true + optional: false - kind: Secret name: cluster-secrets optional: true diff --git a/kubernetes/flux/settings/cluster-settings.yaml b/kubernetes/flux/settings/cluster-settings.yaml new file mode 100644 index 000000000..153d6df40 --- /dev/null +++ b/kubernetes/flux/settings/cluster-settings.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: cluster-settings + namespace: flux-system +data: + TIMEZONE: America/Chicago diff --git a/kubernetes/flux/settings/kustomization.yaml b/kubernetes/flux/settings/kustomization.yaml index fe0f332a9..026a8036b 100644 --- a/kubernetes/flux/settings/kustomization.yaml +++ b/kubernetes/flux/settings/kustomization.yaml @@ -1,4 +1,5 @@ --- apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -resources: [] +resources: + - ./cluster-settings.yaml