meshtastic bridge: switch to go impl
This commit is contained in:
parent
b76ff4d7d4
commit
f2d1506438
4 changed files with 23 additions and 30 deletions
|
@ -3,9 +3,9 @@ kind: Kustomization
|
|||
namespace: meshtastic
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- matrix-meshtastic-bridge.yaml
|
||||
- matrix-bridge-meshtastic.yaml
|
||||
- secrets.yaml
|
||||
configMapGenerator:
|
||||
- name: matrix-meshtastic-bridge
|
||||
- name: matrix-bridge-meshtastic
|
||||
files:
|
||||
- matrix-meshtastic-bridge/config.json
|
||||
- matrix-bridge-meshtastic/config.json
|
||||
|
|
|
@ -1,35 +1,29 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: matrix-meshtastic-bridge
|
||||
name: matrix-bridge-meshtastic
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: matrix-meshtastic-bridge
|
||||
serviceName: matrix-meshtastic-bridge
|
||||
app: matrix-bridge-meshtastic
|
||||
serviceName: matrix-bridge-meshtastic
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: matrix-meshtastic-bridge
|
||||
app: matrix-bridge-meshtastic
|
||||
spec:
|
||||
tolerations:
|
||||
- key: rtlsdr
|
||||
value: "true"
|
||||
effect: NoSchedule
|
||||
containers:
|
||||
- name: matrix-meshtastic-bridge
|
||||
image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-4f5b878
|
||||
- name: matrix-bridge-meshtastic
|
||||
image: git.janky.solutions/finn/matrix-bridge-meshtastic:sha-fae2a30
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: RUST_LOG
|
||||
value: debug
|
||||
- name: CONFIG_PATH
|
||||
- name: MATRIX_BRIDGE_MESHTASTIC_CONFIG
|
||||
value: /config/config.json
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: matrix-meshtastic-bridge
|
||||
name: matrix-bridge-meshtastic
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
|
@ -38,7 +32,7 @@ spec:
|
|||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: matrix-meshtastic-bridge
|
||||
name: matrix-bridge-meshtastic
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
11
k8s/meshtastic/matrix-bridge-meshtastic/config.json
Normal file
11
k8s/meshtastic/matrix-bridge-meshtastic/config.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"matrix": {
|
||||
"user": "@meshtastic-test:janky.bot",
|
||||
"room": "!VRoqFXTXJCHdTDdilP:janky.solutions",
|
||||
"state": "/data/matrix.db"
|
||||
},
|
||||
"meshtastic": {
|
||||
"address": "10.5.0.214"
|
||||
},
|
||||
"db": "/data/bridge.db"
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"matrix": {
|
||||
"username": "@meshtastic-test:janky.bot",
|
||||
"room": "!VRoqFXTXJCHdTDdilP:janky.solutions",
|
||||
"user": "@finn:janky.solutions",
|
||||
"state": "/data/matrix.db"
|
||||
},
|
||||
"meshtastic": {
|
||||
"address": "10.5.0.214:80"
|
||||
},
|
||||
"db": "sqlite:///data/bridge.db"
|
||||
}
|
Loading…
Reference in a new issue