Skip to content

Commit 0e31457

Browse files
authored
Home-assistant (#38)
* add home-assistant definition * deploy home-assistant to home cluster * increase home-assistant volume capacity
1 parent dea95bc commit 0e31457

File tree

7 files changed

+109
-0
lines changed

7 files changed

+109
-0
lines changed

apps/homeassistant/deployment.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: home-assistant
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: home-assistant
10+
template:
11+
metadata:
12+
labels:
13+
app: home-assistant
14+
spec:
15+
containers:
16+
- name: home-assistant
17+
image: "homeassistant/home-assistant:2025.4"
18+
resources:
19+
requests:
20+
memory: "64Mi"
21+
cpu: "50m"
22+
ports:
23+
- name: http
24+
containerPort: 8123
25+
protocol: TCP
26+
readinessProbe:
27+
httpGet:
28+
path: /
29+
port: http
30+
volumeMounts:
31+
- name: config
32+
mountPath: /config
33+
volumes:
34+
- name: config
35+
persistentVolumeClaim:
36+
claimName: home-assistant

apps/homeassistant/ingress.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: home-assistant
5+
labels:
6+
app.kubernetes.io/name: home-assistant
7+
annotations:
8+
cert-manager.io/cluster-issuer: letsencrypt
9+
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
10+
traefik.ingress.kubernetes.io/router.tls: "true"
11+
spec:
12+
ingressClassName: ${INTERNAL_INGRESS_CLASS}
13+
tls:
14+
- hosts:
15+
- "home-assistant.${INTERNAL_DOMAIN}"
16+
secretName: "home-assistant-tls"
17+
rules:
18+
- host: "home-assistant.${EXTERNAL_DOMAIN}"
19+
http:
20+
paths:
21+
- path: "/"
22+
pathType: Prefix
23+
backend:
24+
service:
25+
name: home-assistant
26+
port:
27+
number: 8123

apps/homeassistant/kustomization.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- deployment.yaml
5+
- ingress.yaml
6+
- service.yaml
7+
- volume.yaml

apps/homeassistant/service.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: home-assistant
5+
spec:
6+
selector:
7+
app: home-assistant
8+
ports:
9+
- protocol: TCP
10+
port: 8123
11+
targetPort: 8123

apps/homeassistant/volume.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: home-assistant
5+
labels:
6+
app: home-assistant
7+
spec:
8+
accessModes:
9+
- ReadWriteOnce
10+
resources:
11+
requests:
12+
storage: 35Gi
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: home-assistant
5+
6+
---
7+
apiVersion: kustomize.toolkit.fluxcd.io/v1
8+
kind: Kustomization
9+
metadata:
10+
name: home-assistant
11+
spec:
12+
targetNamespace: home-assistant
13+
path: "./apps/home-assistant"
14+
postBuild:
15+
substituteFrom: []

clusters/home/apps/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ resources:
44
- arr.yaml
55
- blog.yaml
66
- filebrowser.yaml
7+
- home-assistant.yaml
78
- jellyfin.yaml
89
- littlelink.yaml
910
- vaultwarden.yaml

0 commit comments

Comments
 (0)