Created
August 2, 2022 05:30
-
-
Save cerebrate/3eeba0f8fa55f91a712ca2a4a4d50775 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: homeassistant | |
name: homeassistant | |
namespace: homeassistant | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: homeassistant | |
template: | |
metadata: | |
annotations: | |
apps.kruise.io/container-launch-priority: Ordered | |
labels: | |
app: homeassistant | |
spec: | |
nodeName: princess-celestia | |
volumes: | |
- name: ha-mysql-storage | |
hostPath: | |
path: /opt/ha-mysql | |
type: DirectoryOrCreate | |
- name: ha-storage | |
nfs: | |
server: mnemosyne.arkane-systems.lan | |
path: "/swarm/harmony/homeassistant/ha" | |
- name: ha-media | |
nfs: | |
server: mnemosyne.arkane-systems.lan | |
path: "/Media" | |
containers: | |
- image: mysql:latest | |
name: mysql | |
env: | |
- name: MYSQL_ROOT_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mysql-recorder-pass | |
key: password | |
ports: | |
- name: mysql | |
containerPort: 3306 | |
protocol: TCP | |
volumeMounts: | |
- name: ha-mysql-storage | |
mountPath: /var/lib/mysql | |
- image: cerebrate/home-assistant:2022.7.7 | |
name: home-assistant | |
volumeMounts: | |
- mountPath: "/config" | |
name: ha-storage | |
- mountPath: "/media" | |
name: ha-media |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment