commit 1beb3408fdfd507fe412d9fafa3158a0e1a970e0
parent 7ebaabce5e221ee7fad217f00fdd4462b544242b
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Jul 2024 18:42:09 +0200
Meow
Diffstat:
5 files changed, 79 insertions(+), 29 deletions(-)
diff --git a/apps/2024_cluster/kustomization.yaml b/apps/2024_cluster/kustomization.yaml
@@ -20,5 +20,6 @@ resources:
# https://gitlab.com/mb-saces/synatainer/-/merge_requests/7
#- ../base/matrix/syntainer_main_synapse
- ../base/minecraft
+ - ../base/minecraft_homeassistant
patchesStrategicMerge:
- postgres-operator-values.yaml
diff --git a/apps/base/minecraft/ingress.yaml b/apps/base/minecraft/ingress.yaml
@@ -1,28 +0,0 @@
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRouteTCP
-metadata:
- name: minecraft
- namespace: minecraft
-spec:
- entryPoints:
- - minecraft
- routes:
- - match: HostSNI(`*`)
- services:
- - name: minecraft-minecraft
- port: 25565
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRouteTCP
-metadata:
- name: voicechat
- namespace: minecraft
-spec:
- entryPoints:
- - voicechat
- routes:
- - match: HostSNI(`*`)
- services:
- - name: minecraft-minecraft
- port: 24454
-\ No newline at end of file
diff --git a/apps/base/minecraft_homeassistant/kustomization.yaml b/apps/base/minecraft_homeassistant/kustomization.yaml
@@ -0,0 +1,6 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: minecraft
+resources:
+ - repository.yaml
+ - release.yaml
+\ No newline at end of file
diff --git a/apps/base/minecraft_homeassistant/release.yaml b/apps/base/minecraft_homeassistant/release.yaml
@@ -0,0 +1,61 @@
+apiVersion: helm.toolkit.fluxcd.io/v2beta2
+kind: HelmRelease
+metadata:
+ name: home-assistant
+ namespace: minecraft
+spec:
+ releaseName: home-assistant
+ interval: 60m
+ chart:
+ spec:
+ chart: home-assistant
+ sourceRef:
+ kind: HelmRepository
+ name: home-assistant
+ values:
+ ingress:
+ enabled: true
+ annotations:
+ cert-manager.io/cluster-issuer: letsencrypt-dns
+ external-dns.alpha.kubernetes.io/hostname: midnightthoughts.space
+ hosts:
+ - host: homeassistant.daguerreo.midnightthoughts.space
+ paths:
+ - path: /
+ pathType: ImplementationSpecific
+ tls:
+ - secretName: homeassistant.daguerreo.midnightthoughts.space-tls
+ hosts:
+ - homeassistant.daguerreo.midnightthoughts.space
+ configuration:
+ enabled: true
+ forceInit: true
+ # Template for the configuration.yaml file
+ # Used the `tpl` function to render the template, so you can use Go template functions
+ templateConfig: |-
+ # Loads default set of integrations. Do not remove.
+ default_config:
+
+ prometheus:
+ requires_auth: false
+
+ {{- if .Values.ingress.enabled }}
+ http:
+ use_x_forwarded_for: true
+ trusted_proxies:
+ {{- range .Values.configuration.trusted_proxies }}
+ - {{ . }}
+ {{- end }}
+ {{- end}}
+ # Load frontend themes from the themes folder
+ frontend:
+ themes: !include_dir_merge_named themes
+
+ automation: !include automations.yaml
+ script: !include scripts.yaml
+ scene: !include scenes.yaml
+ persistence:
+ enabled: true
+ size: 5Gi
+ serviceMonitor:
+ enabled: true
+\ No newline at end of file
diff --git a/apps/base/minecraft_homeassistant/repository.yaml b/apps/base/minecraft_homeassistant/repository.yaml
@@ -0,0 +1,9 @@
+---
+apiVersion: source.toolkit.fluxcd.io/v1beta2
+kind: HelmRepository
+metadata:
+ name: home-assistant
+ namespace: minecraft
+spec:
+ interval: 5m
+ url: http://pajikos.github.io/home-assistant-helm-chart/