| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: homeassistant-pvc
- namespace: smarthome
- spec:
- accessModes:
- - ReadWriteMany
- storageClassName: nfs
- resources:
- requests:
- storage: 10Gi
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: homeassistant-service
- namespace: smarthome
- spec:
- selector:
- app: homeassistant
- ports:
- - port: 8123
- targetPort: 8123
- type: ClusterIP
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: homeassistant-deployment
- namespace: smarthome
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: homeassistant
- strategy:
- type: Recreate
- template:
- metadata:
- labels:
- app: homeassistant
- spec:
- containers:
- - name: homeassistant
- image: homeassistant/home-assistant:stable
- ports:
- - containerPort: 8123
- volumeMounts:
- - mountPath: /config
- name: homeassistant-pvc
- restartPolicy: Always
- volumes:
- - name: homeassistant-pvc
- persistentVolumeClaim:
- claimName: homeassistant-pvc
|