68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
labels:
|
||
|
app.kubernetes.io/name: home-assistant
|
||
|
name: home-assistant
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: home-assistant
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app.kubernetes.io/name: home-assistant
|
||
|
spec:
|
||
|
automountServiceAccountToken: true
|
||
|
containers:
|
||
|
- env:
|
||
|
- name: TZ
|
||
|
value: UTC
|
||
|
image: ghcr.io/home-assistant/home-assistant:2023.11.2
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
livenessProbe:
|
||
|
failureThreshold: 3
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
tcpSocket:
|
||
|
port: 8123
|
||
|
timeoutSeconds: 1
|
||
|
name: homeassistant-home-assistant
|
||
|
ports:
|
||
|
- containerPort: 8123
|
||
|
name: http
|
||
|
protocol: TCP
|
||
|
readinessProbe:
|
||
|
failureThreshold: 3
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
tcpSocket:
|
||
|
port: 8123
|
||
|
timeoutSeconds: 1
|
||
|
securityContext:
|
||
|
privileged: true
|
||
|
startupProbe:
|
||
|
failureThreshold: 30
|
||
|
periodSeconds: 5
|
||
|
successThreshold: 1
|
||
|
tcpSocket:
|
||
|
port: 8123
|
||
|
timeoutSeconds: 1
|
||
|
terminationMessagePath: /dev/termination-log
|
||
|
terminationMessagePolicy: File
|
||
|
volumeMounts:
|
||
|
- mountPath: /config
|
||
|
name: config
|
||
|
dnsPolicy: ClusterFirst
|
||
|
enableServiceLinks: true
|
||
|
restartPolicy: Always
|
||
|
schedulerName: default-scheduler
|
||
|
serviceAccount: default
|
||
|
serviceAccountName: default
|
||
|
terminationGracePeriodSeconds: 30
|
||
|
volumes:
|
||
|
- name: config
|
||
|
persistentVolumeClaim:
|
||
|
claimName: home-assistant-config
|