Compare commits

...
Sign in to create a new pull request.

22 commits
main ... k3d

Author SHA1 Message Date
af151d4fe6 fix: remove unneeded config options 2025-05-24 22:10:18 +02:00
91e493c0ca fix: change helm chart for home-assistant 2025-05-14 16:34:34 +02:00
c5b80fdf9f fix: next try for home-assistant 2025-05-14 16:06:36 +02:00
54e54c0c34 fix: set hostNetwork to false 2025-05-14 15:51:00 +02:00
66249a3319 fix: next try to fix home-assistant 2025-05-14 15:49:25 +02:00
0cd8398cdd fix: next try to fix home-assitant 2025-05-14 15:36:15 +02:00
46575fc4b9 fix: use another helm repo to fix home-assitant error 2025-05-14 13:42:15 +02:00
263507c852 fix: home-assistant port try 2025-05-14 13:29:12 +02:00
54481d2071 fix: another try to reach home-assitant 2025-05-14 13:25:39 +02:00
946d7ee10d fix: try reaching home-assitant over ingress 2025-05-14 13:17:34 +02:00
b7591a440b fix: try hostNetwork true to fix unreachable home-assitant 2025-05-14 13:14:08 +02:00
3724da25d7 fix: try fixing port error home-assitant 2025-05-14 12:57:01 +02:00
17c4d2bb29 fix: fix port and network issue with home-assitant 2025-05-14 12:49:51 +02:00
2dafe63b15 fix: fix ip issue with home-assitant 2025-05-14 12:46:57 +02:00
2605c9a51e fix: fix typo in home-assistant helmrelease 2025-05-14 12:44:14 +02:00
9e7b072407 ci: add home-assitant to cluster 2025-05-14 12:41:16 +02:00
9b778e8c61 ci: add apps to kustomization for production cluster 2025-05-14 12:33:12 +02:00
db0593bbe7 ci: move app definitions to apps folder 2025-05-14 12:30:26 +02:00
7bb433e1f0 fix: fix ROOT_URL for gitea 2025-05-14 11:50:31 +02:00
2a30dab10f fix: fic gitea warning with wrong root url 2025-05-09 09:32:19 +02:00
Flux
bcfd962b4d Add Flux sync manifests 2025-05-09 09:16:36 +02:00
03e03c28fa ci: change config to run in k3d 2025-05-09 09:14:08 +02:00
21 changed files with 82 additions and 8 deletions

View file

@ -17,7 +17,7 @@ spec:
values: values:
persistence: persistence:
enabled: true enabled: true
storageClass: longhorn storageClass: local-path
size: 5Gi size: 5Gi
ingress: ingress:
enabled: true enabled: true
@ -55,6 +55,8 @@ spec:
tag: 25.0.2-dind tag: 25.0.2-dind
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
config: config:
server:
ROOT_URL: "http://gitea.local/"
actions: actions:
ENABLED: true ENABLED: true
metrics: metrics:

View file

@ -0,0 +1,49 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: home-assistant
namespace: home-assistant
spec:
interval: 5m
releaseName: home-assistant
chart:
spec:
chart: home-assistant
version: "0.3.2"
# version: "1.2.0"
sourceRef:
kind: HelmRepository
name: home-assistant
namespace: flux-system
values:
hostNetwork: false
# hostPort:
# enabled: true
# port: 8123
service:
type: ClusterIP
port: 8123
ingress:
enabled: true
className: traefik
hosts:
- host: home-assistant.local
paths:
- path: /
pathType: Prefix
persistence:
enabled: true
storageClass: local-path
size: 5Gi
configuration:
enabled: true
trusted_proxies:
- "10.0.0.0/8"
- "10.42.0.0/16"
- "172.16.0.0/12"
- "192.168.0.0/16"
- "::1"
- "127.0.0.1"
- "172.23.0.0/16"
use_x_forwarded_for: true

View file

@ -0,0 +1,9 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: home-assistant
namespace: flux-system
spec:
interval: 1h0m0s
url: http://pajikos.github.io/home-assistant-helm-chart
# url: https://charts.alekc.dev

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: home-assistant

6
apps/kustomization.yaml Normal file
View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gitea/
- home-assitant/
# - sonarqube/

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- helmrepository.yaml
- helmrelease.yaml

View file

@ -8,7 +8,7 @@ metadata:
spec: spec:
interval: 1m0s interval: 1m0s
ref: ref:
branch: main branch: k3d
secretRef: secretRef:
name: flux-system name: flux-system
url: https://codeberg.org/Pata1704/homelab_gitops.git url: https://codeberg.org/Pata1704/homelab_gitops.git

View file

@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../infrastructure - ../../infrastructure
- ../../apps

View file

@ -2,8 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- monitoring/ - monitoring/
- longhorn/ # - longhorn/
- gitea/ # - cnpg
# - gitea-runner/
# - sonarqube/
- cnpg

View file

@ -19,5 +19,5 @@ spec:
values: values:
persistence: persistence:
enabled: true enabled: true
storageClass: longhorn storageClass: local-path
size: 5Gi size: 5Gi