meshtastic updates

This commit is contained in:
Finn 2024-10-17 11:26:07 -07:00
parent 1038908903
commit db5a5bd72d
4 changed files with 14 additions and 10 deletions

View file

@ -46,8 +46,8 @@ spec:
groups: groups:
- count: 1 - count: 1
usb: usb:
- vendor: "1A86" - vendor: "10C4"
product: "55D4" product: "EA60"
name: generic-device-plugin name: generic-device-plugin
resources: resources:
requests: requests:

View file

@ -4,7 +4,8 @@ namespace: meshtastic
resources: resources:
- namespace.yaml - namespace.yaml
- matrix-meshtastic-bridge.yaml - matrix-meshtastic-bridge.yaml
secretGenerator: - secrets.yaml
configMapGenerator:
- name: matrix-meshtastic-bridge - name: matrix-meshtastic-bridge
files: files:
- matrix-meshtastic-bridge/config.json - matrix-meshtastic-bridge/config.json

View file

@ -19,7 +19,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: matrix-meshtastic-bridge - name: matrix-meshtastic-bridge
image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-008f7cd image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-af3d7c3
securityContext: securityContext:
privileged: true privileged: true
env: env:
@ -27,6 +27,9 @@ spec:
value: debug value: debug
- name: CONFIG_PATH - name: CONFIG_PATH
value: /config/config.json value: /config/config.json
envFrom:
- secretRef:
name: matrix-meshtastic-bridge
resources: resources:
limits: limits:
janky.solutions/meshtastic: "1" janky.solutions/meshtastic: "1"
@ -34,22 +37,22 @@ spec:
- name: config - name: config
mountPath: /config mountPath: /config
- name: ttyacm0 - name: ttyacm0
mountPath: /dev/ttyACM0 mountPath: /dev/ttyUSB1
- name: data - name: data
mountPath: /data mountPath: /data
volumes: volumes:
- name: config - name: config
secret: configMap:
secretName: matrix-meshtastic-bridge name: matrix-meshtastic-bridge
- name: ttyacm0 - name: ttyacm0
hostPath: hostPath:
type: CharDevice type: CharDevice
path: /dev/ttyACM0 path: /dev/ttyUSB1
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: data name: data
spec: spec:
storageClassName: longhorn storageClassName: local-path
accessModes: ["ReadWriteOnce"] accessModes: ["ReadWriteOnce"]
resources: resources:
requests: requests:

View file

@ -6,7 +6,7 @@
"state": "/data/matrix.db" "state": "/data/matrix.db"
}, },
"meshtastic": { "meshtastic": {
"device": "/dev/ttyACM0" "device": "/dev/ttyUSB1"
}, },
"db": "sqlite:///data/bridge.db" "db": "sqlite:///data/bridge.db"
} }