72 lines
1.4 KiB
YAML
72 lines
1.4 KiB
YAML
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: home-assistant-config
|
|
namespace: home-assistant
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteMany
|
|
storageClassName: cephfs-hyper
|
|
resources:
|
|
requests:
|
|
storage: 2Gi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: home-assistant
|
|
namespace: home-assistant
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: home-assistant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: home-assistant
|
|
spec:
|
|
containers:
|
|
- name: home-assistant
|
|
image: ghcr.io/home-assistant/home-assistant:stable
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8123
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
env:
|
|
- name: TZ
|
|
value: Europe/Berlin
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
memory: 1Gi
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: home-assistant-config
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: home-assistant
|
|
namespace: home-assistant
|
|
spec:
|
|
ipFamilies:
|
|
- IPv6
|
|
- IPv4
|
|
ipFamilyPolicy: PreferDualStack
|
|
selector:
|
|
app: home-assistant
|
|
ports:
|
|
- name: http
|
|
port: 8123
|
|
protocol: TCP
|
|
targetPort: 8123
|
|
sessionAffinity: None
|
|
type: ClusterIP
|
|
---
|