infra/k8s/meshtastic/matrix-meshtastic-bridge.yaml

57 lines
1.4 KiB
YAML
Raw Normal View History

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
image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-008f7cd
securityContext:
privileged: true
env:
- name: RUST_LOG
value: debug
- name: CONFIG_PATH
value: /config/config.json
resources:
limits:
janky.solutions/meshtastic: "1"
volumeMounts:
- name: config
mountPath: /config
- name: ttyacm0
mountPath: /dev/ttyACM0
- name: data
mountPath: /data
volumes:
- name: config
secret:
secretName: matrix-meshtastic-bridge
- name: ttyacm0
hostPath:
type: CharDevice
path: /dev/ttyACM0
volumeClaimTemplates:
- metadata:
name: data
spec:
storageClassName: longhorn
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi