I just wanted to share a blog post titled ROS 2 on Kubernetes: a simple talker and listener setup. This is the second in a series on running ROS 2 on Kubernetes with MicroK8s. Posts about this on discourse and elsewhere document mixed results with ROS on K8s, and it seems the main challenge has been to get consistent RTPS networking to flow properly.
The first post unpacked some of the RTPS features that led to seemingly unpredictable behavior on K8s. Everything in that post should be consistent with middleware vendor documentation and actual traffic captured from a k8s cluster.
This post builds on the first to show how to network K8s pods. It uses MicroK8s with Multus to add a MacVLAN adapter for ROS to use. The config is just meant as a kickstarter, hopefully the discussion helps you create an implementation that works for you.
I’m putting together third post that shows how to extend the cluster out to multiple machines, and a fourth that talks in more detail about troubleshooting different configurations.
Hope helps you understand a bit more about running ROS 2 on K8s!