44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
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
|