172 lines
4.2 KiB
YAML
172 lines
4.2 KiB
YAML
|
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: 6080
|
||
|
protocol: TCP
|
||
|
volumemounts:
|
||
|
- mountpath: /config
|
||
|
name: home-assistant-config
|
||
|
- mountpath: /dev/ttyUSB0
|
||
|
name: home-assistant-usb0
|
||
|
- mountpath: /dev/ttyUSB1
|
||
|
name: home-assistant-usb1
|
||
|
- mountpath: /etc/localtime
|
||
|
name: localtime
|
||
|
readonly: true
|
||
|
|
||
|
- name: mosquitto
|
||
|
image: docker.io/eclipse-mosquitto:latest
|
||
|
ports:
|
||
|
- containerport: 1883
|
||
|
hostport: 1883
|
||
|
protocol: TCP
|
||
|
volumemounts:
|
||
|
- mountpath: /mosquitto/config
|
||
|
name: mosquitto-config
|
||
|
- mountpath: /mosquitto/data
|
||
|
name: mosquitto-data
|
||
|
- mountpath: /mosquitto/log
|
||
|
name: mosquitto-log
|
||
|
- mountpath: /etc/localtime
|
||
|
name: localtime
|
||
|
readonly: true
|
||
|
|
||
|
- name: esphome
|
||
|
image: docker.io/esphome/esphome:stable
|
||
|
env:
|
||
|
- name: USERNAME
|
||
|
value: "<username>"
|
||
|
- name: PASSWORD
|
||
|
value: "<secret>"
|
||
|
ports:
|
||
|
- containerport: 6052
|
||
|
hostport: 6052
|
||
|
protocol: TCP
|
||
|
volumemounts:
|
||
|
- mountpath: /config
|
||
|
name: esphome-config
|
||
|
- mountpath: /etc/localtime
|
||
|
name: localtime
|
||
|
readonly: true
|
||
|
|
||
|
- name: ecowitt
|
||
|
image: docker.io/bachya/ecowitt2mqtt:latest
|
||
|
env:
|
||
|
- name: ECOWITT2MQTT_MQTT_BROKER
|
||
|
value: "smarthome-pod-mosquitto"
|
||
|
- name: ECOWITT2MQTT_MQTT_USERNAME
|
||
|
value: "<username>"
|
||
|
- name: ECOWITT2MQTT_MQTT_PASSWORD
|
||
|
value: "<secret>"
|
||
|
- name: ECOWITT2MQTT_PORT
|
||
|
value: 8181
|
||
|
- name: ECOWITT2MQTT_HASS_DISCOVERY
|
||
|
value: true
|
||
|
- name: ECOWITT2MQTT_INPUT_UNIT_SYSTEM
|
||
|
value: "imperial"
|
||
|
- name: ECOWITT2MQTT_OUTPUT_UNIT_SYSTEM
|
||
|
value: "metric"
|
||
|
- name: ECOWITT2MQTT_PRECISION
|
||
|
value: 1
|
||
|
ports:
|
||
|
- containerport: 8181
|
||
|
hostport: 8181
|
||
|
protocol: TCP
|
||
|
volumemounts:
|
||
|
- mountpath: /etc/localtime
|
||
|
name: localtime
|
||
|
readonly: true
|
||
|
|
||
|
- name: volvo
|
||
|
image: ghcr.io/dielee/volvo2mqtt:latest
|
||
|
env:
|
||
|
- name: CONF_updateInterval
|
||
|
value: 300
|
||
|
- name: CONF_babelLocale
|
||
|
value: "nl"
|
||
|
- name: CONF_mqtt
|
||
|
valuefrom:
|
||
|
secretkeyref:
|
||
|
name: smarthome-secrets
|
||
|
key: volvo-mosquitto
|
||
|
- name: CONF_volvoData
|
||
|
valuefrom:
|
||
|
secretkeyref:
|
||
|
name: smarthome-secrets
|
||
|
key: volvo-url
|
||
|
volumemounts:
|
||
|
- mountpath: /volvoAAOS2mqtt
|
||
|
name: volvo-data
|
||
|
- mountpath: /etc/localtime
|
||
|
name: 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:
|
||
|
- mountpath: /dump
|
||
|
name: postgres-dump
|
||
|
- mountpath: /var/lib/postgresql/data
|
||
|
name: postgres-data
|
||
|
- mountpath: /etc/localtime
|
||
|
name: localtime
|
||
|
readonly: true
|
||
|
|
||
|
volumes:
|
||
|
- hostpath:
|
||
|
path: <home>/.config/pods/smarthome/home-assistant-config
|
||
|
type: Directory
|
||
|
name: home-assistant-config
|
||
|
- hostpath:
|
||
|
path: /dev/ttyUSB0
|
||
|
type: File
|
||
|
name: home-assistant-usb0
|
||
|
- hostpath:
|
||
|
path: /dev/ttyUSB1
|
||
|
type: File
|
||
|
name: home-assistant-usb1
|
||
|
- hostpath:
|
||
|
path: <home>/.config/pods/smarthome/mosquitto-config
|
||
|
type: Directory
|
||
|
name: mosquitto-config
|
||
|
- persistentvolumeclaim:
|
||
|
claimname: smarthome-pod-mosquitto-data
|
||
|
name: mosquitto-data
|
||
|
- persistentvolumeclaim:
|
||
|
claimname: smarthome-pod-mosquitto-log
|
||
|
name: mosquitto-log
|
||
|
- hostpath:
|
||
|
path: <home>/.config/pods/smarthome/esphome-config
|
||
|
type: Directory
|
||
|
name: esphome-config
|
||
|
- persistentvolumeclaim:
|
||
|
claimname: smarthome-pod-volvo-data
|
||
|
name: volvo-data
|
||
|
- hostpath:
|
||
|
path: <home>/.dump/smarthome
|
||
|
type: Directory
|
||
|
name: postgres-dump
|
||
|
- persistentvolumeclaim:
|
||
|
claimname: smarthome-pod-postgres-data
|
||
|
name: postgres-data
|
||
|
- hostpath:
|
||
|
path: /etc/localtime
|
||
|
type: File
|
||
|
name: localtime
|