Deploy MAVProxy on Kubernetes

Run the proxy in a cluster with Helm and expose a UDP NodePort so drones can send MAVLink straight to it. One release per mission.

What you get

The public image ghcr.io/ollebo/mavproxy:latest receives MAVLink over UDP, reshapes it, and forwards it to https://api.ollebo.com. The Helm chart lives in the Ollebo/mavproxy repo under chart/, and exposes:

  • UDP NodePort 30550 — point your drone / GCS MAVLink output here
  • NodePort 30808 — a small web UI to check the connection status

1. Namespace + mission-key secret

Grab your key from the Missions page.

kubectl create namespace mavproxy

kubectl -n mavproxy create secret generic mavproxy-key \
  --from-literal=OLLEBO_MISSION_KEY=YOUR_MISSION_KEY

2. Install with Helm

git clone https://github.com/Ollebo/mavproxy.git
cd mavproxy

helm install mavproxy ./chart -n mavproxy \
  --set secret.existingSecret=mavproxy-key \
  --set config.missionName=my-mission

Check it came up and note the node ports:

kubectl get pods,svc -n mavproxy
# svc shows 14550:30550/UDP, 14550:30550/TCP, 8080:30808/TCP

Now send MAVLink to <any-node-ip>:30550 (UDP) and watch it on the live map.

Multiple missions side by side

Each mission is its own release with its own key and node ports:

helm install mavproxy-a ./chart -n mavproxy \
  --set secret.missionKey=KEY_FOR_MISSION_A \
  --set service.mavlink.udpNodePort=30550 --set service.ui.nodePort=30808

helm install mavproxy-b ./chart -n mavproxy \
  --set secret.missionKey=KEY_FOR_MISSION_B \
  --set service.mavlink.udpNodePort=30551 --set service.ui.nodePort=30809

(Two Services can't share a NodePort, so give each release its own.)

Sending video

Video never passes through the proxy, so there is nothing to add to this release for it: the camera publishes H.264 straight to ingest.ollebo.com over RTSPS. Normally that happens on the vehicle or its companion computer — see Send live video.

The exception is a feed the cluster can already reach, such as a fixed IP camera. Then one small Deployment can re-stream it. Keep the ingest URL in a Secret, since it carries the publish password:

kubectl -n mavproxy create secret generic video-ingest \
  --from-literal=url="rtsps://publish:YOUR_STREAM_KEY@ingest.ollebo.com:443/YOUR_STREAM_ID"
apiVersion: apps/v1
kind: Deployment
metadata:
  name: video-publisher
  namespace: mavproxy
spec:
  replicas: 1
  selector:
    matchLabels:
      app: video-publisher
  template:
    metadata:
      labels:
        app: video-publisher
    spec:
      containers:
        - name: ffmpeg
          image: linuxserver/ffmpeg:latest
          env:
            - name: INGEST_URL
              valueFrom:
                secretKeyRef:
                  name: video-ingest
                  key: url
          args:
            - -rtsp_transport
            - tcp
            - -i
            - rtsp://user:pass@camera.internal:554/stream1
            - -an
            - -c:v
            - copy
            - -f
            - rtsp
            - -rtsp_transport
            - tcp
            - $(INGEST_URL)

Kubernetes expands $(INGEST_URL) in args from the container's env, so the password never appears in the manifest. -c:v copy forwards an H.264 camera without re-encoding; if yours is not H.264, swap it for the libx264 flags used on the video page. The Deployment restarts the pod when ffmpeg exits, which is what reconnects the stream after a drop.

GitOps (optional)

The repo ships an ArgoCD Application in argocd/application.yaml pointing at chart/. Apply it to manage the proxy via ArgoCD instead of helm install. See the repo's README.md for details.