feat: add k8s manifests and gitops sync workflow for smart-home
Sync Smart Home Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 3s

This commit is contained in:
2026-10-17 17:00:28 +02:00
parent 2b4183bfd9
commit 2ca8b6486b
6 changed files with 182 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: homeassistant
namespace: smart-home
labels:
app.kubernetes.io/name: homeassistant
app.kubernetes.io/part-of: smart-home
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: homeassistant
template:
metadata:
labels:
app: homeassistant
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
kubernetes.io/hostname: vmserver
containers:
- name: homeassistant
image: ghcr.io/home-assistant/home-assistant:2026.9.4
env:
- name: TZ
value: "Europe/Amsterdam"
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 2000m
memory: 4Gi
volumeMounts:
- name: config
mountPath: /config
livenessProbe:
httpGet:
path: /manifest.json
port: 8123
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /manifest.json
port: 8123
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
persistentVolumeClaim:
claimName: homeassistant-config
+10
View File
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: smart-home
resources:
- namespace.yaml
- pvc.yaml
- service.yaml
- deployment.yaml
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: smart-home
labels:
app.kubernetes.io/name: smart-home
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: homeassistant-config
namespace: smart-home
labels:
app.kubernetes.io/name: homeassistant
app.kubernetes.io/part-of: smart-home
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 20Gi
+17
View File
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: homeassistant
namespace: smart-home
labels:
app.kubernetes.io/name: homeassistant
app.kubernetes.io/part-of: smart-home
spec:
type: ClusterIP
ports:
- port: 8123
targetPort: 8123
protocol: TCP
name: http
selector:
app: homeassistant