Skip to content

Kubernetes Deployment (Helm) ​

MeshMonitor ships a Helm chart for deploying to any Kubernetes 1.19+ cluster. The chart lives under helm/meshmonitor/ in the repository and is fully documented in the chart README β€” this page is the docs-site landing point for Kubernetes installs.

Prerequisites ​

  • Kubernetes 1.19+
  • Helm 3.0+
  • A node to connect: a Meshtastic node reachable from the cluster (WiFi/Ethernet, or a Serial/BLE bridge exposing TCP), a MeshCore node, or an MQTT feed. You can add it after install.
  • Optional: an ingress controller (nginx, Traefik, etc.) and cert-manager if you want TLS

Quick Start ​

  1. Add the Helm repository:

    bash
    helm repo add meshmonitor https://meshmonitor.org/charts
    helm repo update

    helm search repo meshmonitor lists the available chart versions. (Prefer to work from a checkout? git clone --recurse-submodules https://github.com/Yeraze/meshmonitor.git and use ./helm/meshmonitor as the chart path in step 3.)

  2. Create custom-values.yaml:

    yaml
    env:
      # Optional: seeds the first source on first boot. Empty by default, so
      # no source is created; add sources from the Sources sidebar instead.
      meshtasticNodeIp: "192.168.1.100"

    After the first boot, add and edit sources in the dashboard's Sources sidebar. Changing meshtasticNodeIp later does not change an existing source.

  3. Install the chart:

    bash
    helm install meshmonitor meshmonitor/meshmonitor -f custom-values.yaml
  4. Access the UI. The default install creates a ClusterIP service; port-forward to reach it locally:

    bash
    kubectl port-forward svc/meshmonitor 8080:80

    Open http://localhost:8080 and sign in with the default credentials (admin / changeme). Change the password immediately.

Common Configurations ​

Ingress with TLS ​

yaml
env:
  meshtasticNodeIp: "192.168.1.100"

ingress:
  enabled: true
  className: "nginx"
  hosts:
    - host: meshmonitor.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: meshmonitor-tls
      hosts:
        - meshmonitor.example.com

# Behind HTTPS, these are needed or the page loads blank / logins fail.
# See /configuration/reverse-proxy.
extraEnv:
  - name: ALLOWED_ORIGINS
    value: "https://meshmonitor.example.com"
  - name: TRUST_PROXY
    value: "true"
  - name: COOKIE_SECURE
    value: "true"
  - name: SESSION_SECRET
    valueFrom:
      secretKeyRef:
        name: meshmonitor-secrets
        key: session-secret

Create the secret before you install:

bash
kubectl create secret generic meshmonitor-secrets \
  --from-literal=session-secret="$(openssl rand -hex 32)"

Subfolder Deployment ​

To serve MeshMonitor at https://example.com/meshmonitor/:

yaml
env:
  meshtasticNodeIp: "192.168.1.100"
  baseUrl: "/meshmonitor"

ingress:
  enabled: true
  className: "nginx"
  hosts:
    - host: example.com
      paths:
        - path: /meshmonitor
          pathType: Prefix

Persistence ​

The chart provisions a PersistentVolumeClaim by default (1Gi). Resize or point at an existing PVC:

yaml
persistence:
  enabled: true
  size: "5Gi"
  # storageClass: "fast-ssd"
  # existingClaim: "my-existing-pvc"

Resource Limits ​

yaml
resources:
  limits:
    cpu: 500m
    memory: 512Mi
  requests:
    cpu: 250m
    memory: 256Mi

Virtual Node ​

The chart's service.port covers the web UI only. To expose a Virtual Node port, use service.extraPorts or the separate virtualNodeService. See the Virtual Node Helm section.

Upgrading ​

bash
helm repo update
helm upgrade meshmonitor meshmonitor/meshmonitor -f custom-values.yaml

(From a checkout: git pull && helm upgrade meshmonitor ./helm/meshmonitor -f custom-values.yaml.)

The chart appVersion is bumped on every MeshMonitor release; pin a specific image tag via image.tag if you need a stable target.

Uninstalling ​

bash
helm uninstall meshmonitor
# PVC is preserved by default β€” delete it explicitly if desired:
kubectl delete pvc meshmonitor

Troubleshooting ​

Can't reach the Meshtastic node from the pod:

bash
kubectl run -it --rm debug --image=busybox --restart=Never -- wget -O- http://YOUR_NODE_IP
kubectl logs -l app.kubernetes.io/name=meshmonitor

Database/permission errors:

bash
kubectl get pvc
kubectl exec -it deployment/meshmonitor -- ls -la /data

Pod not starting:

bash
kubectl describe pod -l app.kubernetes.io/name=meshmonitor
kubectl logs -l app.kubernetes.io/name=meshmonitor

Reference ​

GitOps ​

The chart is GitOps-friendly: commit your custom-values.yaml to a config repo and let ArgoCD or Flux apply it. Pin image.tag to a specific release rather than latest so deployments are reproducible.