add homeassistant
This commit is contained in:
1 parent
b045e93985
commit
4bcbf57049
8 files changed
+429
No files matched your search
@@ -0,0 +1,76 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: homeassistant-deployment
|
||||
labels:
|
||||
app: homeassistant
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: homeassistant
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: homeassistant
|
||||
spec:
|
||||
hostNetwork: true # <--- DAS IST NEU UND WICHTIG
|
||||
dnsPolicy: ClusterFirstWithHostNet # <--- WICHTIG FÜR DNS
|
||||
containers:
|
||||
- name: homeassistant
|
||||
image: lscr.io/linuxserver/homeassistant:2026.4.4
|
||||
# securityContext:
|
||||
# privileged: true
|
||||
volumeMounts:
|
||||
- name: homeassistant-volume
|
||||
mountPath: /config
|
||||
ports:
|
||||
- name: hmast-ui-port
|
||||
containerPort: 8123
|
||||
- name: hmast-devi-port
|
||||
containerPort: 5353
|
||||
volumes:
|
||||
- name: homeassistant-volume
|
||||
hostPath:
|
||||
path: /root/kubernetes/homeassistant/data/config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: homeassistant-service
|
||||
spec:
|
||||
selector:
|
||||
app: homeassistant
|
||||
ports:
|
||||
- name: homeassistant-http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8123
|
||||
- name: homeassistant-devices
|
||||
protocol: TCP
|
||||
port: 5353
|
||||
targetPort: 5353
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: homeassistant-ingress
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
|
||||
spec:
|
||||
ingressClassName: "traefik"
|
||||
tls:
|
||||
- hosts:
|
||||
- homeassistant.tap-tap.win
|
||||
secretName: homeassistant-tls-secret
|
||||
rules:
|
||||
- host: homeassistant.tap-tap.win
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: homeassistant-service
|
||||
port:
|
||||
number: 80
|
||||
Reference in new issue
Block a user