dotconfig/pods: add
This commit is contained in:
parent
679647542d
commit
2e05501c92
14 changed files with 755 additions and 0 deletions
112
dotconfig/pods/smarthome/smarthome-pod.yml
Normal file
112
dotconfig/pods/smarthome/smarthome-pod.yml
Normal file
|
@ -0,0 +1,112 @@
|
|||
apiversion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: smarthome-pod
|
||||
annotations:
|
||||
io.podman.annotations.infra.name: smarthome-pod-infra
|
||||
run.oci.keep_original_groups: 1
|
||||
spec:
|
||||
containers:
|
||||
- name: home-assistant
|
||||
image: ghcr.io/home-assistant/home-assistant:latest
|
||||
ports:
|
||||
- containerport: 3000
|
||||
hostport:
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- name: home-assistant-config
|
||||
mountpath: /config
|
||||
- name: home-assistant-usb0
|
||||
mountpath: /dev/ttyUSB0
|
||||
- name: home-assistant-usb1
|
||||
mountpath: /dev/ttyUSB1
|
||||
- name: localtime
|
||||
mountpath: /etc/localtime
|
||||
readonly: true
|
||||
|
||||
- name: mosquitto
|
||||
image: docker.io/eclipse-mosquitto:latest
|
||||
ports:
|
||||
- containerport: 1883
|
||||
hostport: 1883
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- name: mosquitto-config
|
||||
mountpath: /mosquitto/config
|
||||
- name: mosquitto-data
|
||||
mountpath: /mosquitto/data
|
||||
- name: mosquitto-log
|
||||
mountpath: /mosquitto/log
|
||||
- name: localtime
|
||||
mountpath: /etc/localtime
|
||||
readonly: true
|
||||
|
||||
- name: esphome
|
||||
image: docker.io/esphome/esphome:latest
|
||||
env:
|
||||
- name: USERNAME
|
||||
value: ""
|
||||
- name: PASSWORD
|
||||
value: ""
|
||||
ports:
|
||||
- containerport: 6052
|
||||
hostport: 6052
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- name: esphome-config
|
||||
mountpath: /config
|
||||
- name: localtime
|
||||
mountpath: /etc/localtime
|
||||
readonly: true
|
||||
|
||||
- name: postgres
|
||||
image: docker.io/library/postgres:16-alpine
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
valuefrom:
|
||||
secretkeyref:
|
||||
name: smarthome-secrets
|
||||
key: postgres-password
|
||||
volumemounts:
|
||||
- name: postgres-dump
|
||||
mountpath: /dump
|
||||
- name: postgres-data
|
||||
mountpath: /var/lib/postgresql/data
|
||||
- name: localtime
|
||||
mountpath: /etc/localtime
|
||||
readonly: true
|
||||
|
||||
volumes:
|
||||
- name: home-assistant-config
|
||||
hostpath:
|
||||
path: $HOME/.config/pods/smarthome/home-assistant-config
|
||||
type: Directory
|
||||
- name: home-assistant-usb0
|
||||
hostpath:
|
||||
path: /dev/ttyUSB0
|
||||
type: File
|
||||
- name: home-assistant-usb1
|
||||
hostpath:
|
||||
path: /dev/ttyUSB1
|
||||
type: File
|
||||
- name: mosquitto-config
|
||||
hostpath:
|
||||
path: $HOME/.config/pods/smarthome/mosquitto-config
|
||||
type: Directory
|
||||
- name: mosquitto-data
|
||||
persistentvolumeclaim:
|
||||
claimname: smarthome-pod-mosquitto-data
|
||||
- name: mosquitto-log
|
||||
persistentvolumeclaim:
|
||||
claimname: smarthome-pod-mosquitto-log
|
||||
- name: postgres-dump
|
||||
hostpath:
|
||||
path: $HOME/.dump/smarthome
|
||||
type: Directory
|
||||
- name: postgres-data
|
||||
persistentvolumeclaim:
|
||||
claimname: smarthome-pod-postgres-data
|
||||
- name: localtime
|
||||
hostpath:
|
||||
path: /etc/localtime
|
||||
type: File
|
7
dotconfig/pods/smarthome/smarthome-secrets.yml
Normal file
7
dotconfig/pods/smarthome/smarthome-secrets.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiversion: v1
|
||||
data:
|
||||
postgres-password:
|
||||
kind: Secret
|
||||
metadata:
|
||||
creationtimestamp: null
|
||||
name: smarthome-secrets
|
Loading…
Add table
Add a link
Reference in a new issue