moved to casa kubernetes
Some checks failed
/ deploy-to-homesrv01 (push) Has been cancelled

This commit is contained in:
2025-11-09 20:55:41 +00:00
parent 00c462b908
commit b54f2c9c21
7 changed files with 104 additions and 52 deletions

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: home-assistant-config
namespace: home-assistant
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
storageClassName: local-path

View File

@@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: home-assistant
namespace: home-assistant
labels:
app: home-assistant
spec:
replicas: 1
selector:
matchLabels:
app: home-assistant
template:
metadata:
labels:
app: home-assistant
spec:
hostNetwork: true
containers:
- name: home-assistant
image: "homeassistant/home-assistant"
volumeMounts:
- name: home-assistant-config
mountPath: /config
resources:
requests:
memory: "512Mi"
cpu: "400m"
limits:
memory: "700Mi"
cpu: "1000m"
volumes:
- name: home-assistant-config
persistentVolumeClaim:
claimName : home-assistant-config

View File

@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
name: home-assistant-external
namespace: home-assistant
spec:
clusterIP: None
ports:
- port: 8123
protocol: TCP
---
apiVersion: v1
kind: Endpoints
metadata:
name: home-assistant-external
namespace: home-assistant
subsets:
- addresses:
- ip: 192.168.14.9 # Replace with your actual external IP
ports:
- port: 8123

View File

@@ -0,0 +1,22 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: home-assistant
namespace: home-assistant
spec:
entryPoints:
- websecure
routes:
- match: Host(`casa.limbosolutions.com`)
kind: Rule
services:
- name: home-assistant-external
port: 8123
- match: Host(`has.casa.limbosolutions.com`)
kind: Rule
services:
- name: home-assistant-external
port: 8123
tls:
secretName: casa-limbosolutions-com-tls

View File

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