home-assistant: Deploy mqtt2vl
`mqtt2vl` is a relatively simple service I developed to read log messages from an MQTT topic (i.e. those published by ESPHome devices) and stream them to Victoria Logs over HTTPS.
This commit is contained in:
43
home-assistant/mqtt2vl.yaml
Normal file
43
home-assistant/mqtt2vl.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: mqtt2vl
|
||||
app.kubernetes.io/name: mqtt2vl
|
||||
app.kubernetes.io/part-of: home-assistant
|
||||
name: mqtt2vl
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/component: mqtt2vl
|
||||
app.kubernetes.io/name: mqtt2vl
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: mqtt2vl
|
||||
app.kubernetes.io/name: mqtt2vl
|
||||
app.kubernetes.io/part-of: home-assistant
|
||||
spec:
|
||||
containers:
|
||||
- name: mqtt2vl
|
||||
image: git.pyrocufflink.net/containerimages/mqtt2vl
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- /etc/mqtt2vl/mqtt2vl.toml
|
||||
env:
|
||||
- name: RUST_LOG
|
||||
value: info,mqtt2vl=debug
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: true
|
||||
volumeMounts:
|
||||
- mountPath: /etc/mqtt2vl
|
||||
name: config
|
||||
readOnly: true
|
||||
securityContext:
|
||||
runAsUser: 29734
|
||||
runAsGroup: 29734
|
||||
fsGroup: 29734
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: mqtt2vl
|
||||
Reference in New Issue
Block a user