2024-10-15 07:07:17 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: matrix-meshtastic-bridge
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: matrix-meshtastic-bridge
|
|
|
|
serviceName: matrix-meshtastic-bridge
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: matrix-meshtastic-bridge
|
|
|
|
spec:
|
|
|
|
tolerations:
|
|
|
|
- key: rtlsdr
|
|
|
|
value: "true"
|
|
|
|
effect: NoSchedule
|
|
|
|
containers:
|
|
|
|
- name: matrix-meshtastic-bridge
|
2024-10-17 18:26:07 +00:00
|
|
|
image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-af3d7c3
|
2024-10-15 07:07:17 +00:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
env:
|
|
|
|
- name: RUST_LOG
|
|
|
|
value: debug
|
|
|
|
- name: CONFIG_PATH
|
|
|
|
value: /config/config.json
|
2024-10-17 18:26:07 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: matrix-meshtastic-bridge
|
2024-10-15 07:07:17 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
janky.solutions/meshtastic: "1"
|
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /config
|
|
|
|
- name: ttyacm0
|
2024-10-17 18:26:07 +00:00
|
|
|
mountPath: /dev/ttyUSB1
|
2024-10-15 07:07:17 +00:00
|
|
|
- name: data
|
|
|
|
mountPath: /data
|
|
|
|
volumes:
|
|
|
|
- name: config
|
2024-10-17 18:26:07 +00:00
|
|
|
configMap:
|
|
|
|
name: matrix-meshtastic-bridge
|
2024-10-15 07:07:17 +00:00
|
|
|
- name: ttyacm0
|
|
|
|
hostPath:
|
|
|
|
type: CharDevice
|
2024-10-17 18:26:07 +00:00
|
|
|
path: /dev/ttyUSB1
|
2024-10-15 07:07:17 +00:00
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: data
|
|
|
|
spec:
|
2024-10-17 18:26:07 +00:00
|
|
|
storageClassName: local-path
|
2024-10-15 07:07:17 +00:00
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|