home assistant manual deployment

This commit is contained in:
Remy Moll 2023-11-29 10:32:22 +01:00
parent d67f84813c
commit 0826a942d3
6 changed files with 59 additions and 10 deletions

View File

@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: homeassistant
spec:
replicas: 1
selector:
matchLabels:
app: homeassistant
template:
metadata:
labels:
app: homeassistant
spec:
containers:
- name: homeassistant
image: homeassistant/home-assistant:2023.11
ports:
- containerPort: 8123
env:
- name: TZ
value: Europe/Berlin
volumeMounts:
- name: config
mountPath: /config
resources:
requests:
cpu: "100m"
memory: "200Mi"
limits:
cpu: "2"
memory: "1Gi"
volumes:
- name: config
persistentVolumeClaim:
claimName: homeassistant-nfs

View File

@ -11,7 +11,7 @@ spec:
- name: homeassistant-websocket
kind: Rule
services:
- name: homeassistant-home-assistant
- name: homeassistant-web
port: 8123
tls:
certResolver: default-tls

View File

@ -4,13 +4,15 @@ resources:
- namespace.yaml
- ingress.yaml
- pvc.yaml
- service.yaml
- deployment.yaml
namespace: homeassistant
helmCharts:
- name: home-assistant
releaseName: homeassistant
version: 13.4.2
valuesFile: values.yaml
repo: https://k8s-at-home.com/charts/
# helmCharts:
# - name: home-assistant
# releaseName: homeassistant
# version: 13.4.2
# valuesFile: values.yaml
# repo: https://k8s-at-home.com/charts/

View File

@ -11,7 +11,7 @@ spec:
accessModes:
- ReadWriteOnce
nfs:
path: /export/kluster/homeassistant
path: /kluster/homeassistant
server: 192.168.1.157
---
apiVersion: v1

View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: homeassistant-web
spec:
selector:
app: homeassistant
ports:
- port: 8123
targetPort: 8123

View File

@ -6,7 +6,7 @@ spec:
capacity:
storage: "1Mi"
accessModes:
- ReadOnlyOnce
- ReadOnlyMany
nfs:
path: /kluster/
server: 192.168.1.157
@ -18,7 +18,7 @@ metadata:
spec:
storageClassName: ""
accessModes:
- ReadOnlyOnce
- ReadOnlyMany
resources:
requests:
storage: "1Mi"