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
|
namespace: meshtastic
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- matrix-meshtastic-bridge.yaml
|
- matrix-bridge-meshtastic.yaml
|
||||||
- secrets.yaml
|
- secrets.yaml
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: matrix-meshtastic-bridge
|
- name: matrix-bridge-meshtastic
|
||||||
files:
|
files:
|
||||||
- matrix-meshtastic-bridge/config.json
|
- matrix-bridge-meshtastic/config.json
|
||||||
|
|
|
@ -1,35 +1,29 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: matrix-meshtastic-bridge
|
name: matrix-bridge-meshtastic
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: matrix-meshtastic-bridge
|
app: matrix-bridge-meshtastic
|
||||||
serviceName: matrix-meshtastic-bridge
|
serviceName: matrix-bridge-meshtastic
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: matrix-meshtastic-bridge
|
app: matrix-bridge-meshtastic
|
||||||
spec:
|
spec:
|
||||||
tolerations:
|
|
||||||
- key: rtlsdr
|
|
||||||
value: "true"
|
|
||||||
effect: NoSchedule
|
|
||||||
containers:
|
containers:
|
||||||
- name: matrix-meshtastic-bridge
|
- name: matrix-bridge-meshtastic
|
||||||
image: git.janky.solutions/finn/matrix-meshtastic-bridge:sha-4f5b878
|
image: git.janky.solutions/finn/matrix-bridge-meshtastic:sha-fae2a30
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
env:
|
env:
|
||||||
- name: RUST_LOG
|
- name: MATRIX_BRIDGE_MESHTASTIC_CONFIG
|
||||||
value: debug
|
|
||||||
- name: CONFIG_PATH
|
|
||||||
value: /config/config.json
|
value: /config/config.json
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: matrix-meshtastic-bridge
|
name: matrix-bridge-meshtastic
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
@ -38,7 +32,7 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: matrix-meshtastic-bridge
|
name: matrix-bridge-meshtastic
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data
|
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