-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-assistant.yaml
50 lines (49 loc) · 961 Bytes
/
home-assistant.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# HOME ASSISTANT DEPLOYMENT
apiVersion: apps/v1
kind: Deployment
metadata:
name: home-assistant-deployment
labels:
app: home-assistant
spec:
replicas: 1
selector:
matchLabels:
app: home-assistant
template:
metadata:
labels:
app: home-assistant
spec:
containers:
- name: home-assistant
image: homeassistant/home-assistant:latest
volumeMounts:
- mountPath: /config
name: config
ports:
- containerPort: 8123
env:
- name: TZ
value: "Europe/Rome"
volumes:
- name: config
hostPath:
path: /home/docker/data/home-assistant
type: Directory
---
# HOME ASSISTANT SERVICE
apiVersion: v1
kind: Service
metadata:
name: home-assistant-service
spec:
type: NodePort
selector:
app: home-assistant
ports:
- name: web
protocol: TCP
port: 8123
targetPort: 8123
nodePort: 30007