kubernetes cluster - working version

This commit is contained in:
2022-06-20 23:24:17 +02:00
parent 86cd07c4b6
commit fb2895f79d
14 changed files with 99 additions and 20 deletions

View File

@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: homeassistant
spec:
serviceName: homeassistant
selector:
matchLabels:
app: homeassistant
replicas: 1
template:
metadata:
labels:
app: homeassistant
spec:
containers:
- name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 8123
volumeMounts:
- name: homeassistant-config
mountPath: /config
volumes:
- name: homeassistant-config
persistentVolumeClaim:
claimName: homeassistant-pvc