1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 17:09:45 +00:00
flux/workloads/hass/deployment.yml

54 lines
1.2 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hass
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: hass
template:
metadata:
labels:
app: hass
spec:
containers:
- image: registry.gitlab.com/shouptech/home-assistant:0.106.2
imagePullPolicy: IfNotPresent
name: hass
ports:
- containerPort: 8123
name: hass-http
volumeMounts:
- mountPath: /config
name: hass-config
- mountPath: /etc/localtime
name: localtime
readOnly: true
- mountPath: /snaps
name: hass-snaps
livenessProbe:
httpGet:
path: /
port: hass-http
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 15
successThreshold: 1
failureThreshold: 6
volumes:
- name: hass-config
hostPath:
path: /opt/hass/config
type: Directory
- name: hass-snaps
hostPath:
path: /opt/hass/snaps
type: Directory
- name: localtime
hostPath:
path: /etc/localtime
type: File