fujitatomoya/ros_k8s
概要
Kuberenetes / ROS&ROS2 Cluster Samples
システム・インフラ計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルROS Kubernetes / KubeEdge
Abstract
This repository provides tutorials how to use ROS and ROS 2 with Kubernetes and KubeEdge Cluster System. User might need to have knowledge about Kubernetes to understand what is really going on the cluster system.
Motivation
The primary goal for this repository is that everyone can try ROS and ROS 2 with Kubernetes and KubeEdge Cluster. Using container images and container orchestration allows application developer to be agnostic from system platform but only application logic. ROS and ROS 2 provides good isolation between nodes, so that we can take the most advantage of application runtime framework and container orchestration.
To share the information and experience for this can bring more use cases and requirements, so that we can develop more robotics and robot requirements for container orchestration.
The concept to bring Cloud Native Container Orchestration to edge IoT devices are already topic and discussed in Kubernetes Edge IoT WG.
But key point here is robot and robotics, which can be much more complicated than usual edge IoT devices such as complicated and special devices, hardware acceleration and so on.
To break down the requirements for robot and robotics would be very much useful for ROS and ROS 2 user, also Kubernetes container orchestration for edge IoT use cases.
Supported ROS / ROS 2 Distribution
Since Kubernetes uses container images and agnostic from it, any distribution should be supported. But the following is primary supported distribution of ROS and ROS 2.
- ROS Noetic (ROS 1, Ubuntu 20.04, EOL May 2025, kept for reference)
- ROS 2 Jazzy (LTS, Ubuntu 24.04)
- ROS 2 Rolling (development distribution)
Cluster System Configuration
We can use either Physical Host System or Virtualized Instance.
- Host System
This is practical environment for robot and robotics application in general. This will set up Kubernetes cluster on the following verified host systems.
Ubuntu: 24.04 LTS (Noble)
Architecture: amd64/aarch64(Raspberry Pi 4/5)
Virtualized Instance
This is virtualized Kubernetes cluster environment which can be established on single physical host. We can use this environment if container requires pure computation resource but hardware or physical sensor devices. This environment is very much useful to try or test your container images or services to make sure if those work as expected, and easy to break down whole Kubernetes cluster with one command.
- Kubernetes IN Docker (kind): cluster nodes are the containers on the host, the quickest way to try the deployment samples.
- Vagrant Virtual Machines: cluster nodes are Ubuntu 24.04 virtual machines, the same procedures with the physical host systems (
kubeadm, KubeEdge) can be verified.
Verified Versions
| Component | Version |
|---|---|
| Ubuntu | 24.04 LTS (Noble) |
| Kubernetes | v1.37 |
| KubeEdge | v1.23.1 (verified with Kubernetes v1.30 - v1.32) |
| kind | v0.33.0 (kindest/node:v1.37.0) |
| Cilium | v1.20.x |
| containerd | 2.x (Docker apt repository) |
Verified Deployment Samples
All deployment samples in this repository are re-verified with Cilium multicast enabled (see Enable Multicast) on the kind cluster with the versions above, since WeaveNet that used to be the CNI plugin for the multicast support has reached end of life.
| Sample | Manifest | Multicast | Verified | Note |
|---|---|---|---|---|
| ROS DaemonSet Deployment | ros1-daemonset.yaml | not required | :heavy_check_mark: | |
| ROS Multi-Node Deployment | ros1-multinode.yaml | not required | :heavy_check_mark: | headless service DNS for rosmaster |
| ROS Multi-Node Deployment with Host Network | ros1-multinode-hostnic.yaml | not required | :heavy_check_mark: | ROS_MASTER_URI must be the node name |
| ROS 2 Simple Distributed System | ros2-sample.yaml | required | :heavy_check_mark: | discovery across the nodes via 239.255.0.1 |
| ROS 2 Localhost Only | ros2-localhost.yaml | not required | :heavy_check_mark: | ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST |
| ROS 2 Logical Partition / Multiple RMW | ros2-config.yaml, ros2-domain-configmap.yaml | required | :heavy_check_mark: | ROS_DOMAIN_ID 5 and 10 share the group 239.255.0.1 |
| ROS 2 Host Network (KubeEdge) | ros2-sample-hostnic.yaml | not required | :heavy_check_mark: | node names must be replaced |
| ROS 2 GUI Display Access | ros2-turtlesim.yaml | required | physical node only | requires X server on the node, kind nodes do not have display |
| ROS 2 Zero Copy Data Sharing | ros2-data-sharing.yaml | not required | :heavy_check_mark: | shared memory in the pod |
| ROS 2 Fast-DDS Discovery Server | ros2-fastdds-discovery-server.yaml, ros2-fastdds-discovery-server-apps.yaml | not required | :heavy_check_mark: | headless service DNS for the discovery servers |
| ROS 2 Security Enclaves with ConfigMap | ros2-security-config.yaml, ros2-security-sample.yaml | required | :heavy_check_mark: | |
| Debug DaemonSet | ubuntu24-daemonset.yaml | not required | :heavy_check_mark: |
[!NOTE] The deployment samples use
tomoyafujita/ros:<distro>container images built from Build Docker Images. If the image tag is not available on Docker Hub (or outdated), build the image and load it into the kind nodes withkind load docker-imageor push it to your own registry, see Load local container images.
Tutorials
- Install Kubernetes Packages
- Build ROS / ROS 2 Full Docker Multi-Arch Images
- Setup Kubernetes Cluster
- Setup KubeEdge Cloud/Edge Node
- Setup Virtualized Kubernetes Cluster
- Setup Vagrant Virtual Machine Cluster
- ROS Deployment Demonstration
- ROS 2 Deployment Demonstration
- ROS 2 Deployment Intermediate
- ROS 2 Gazebo Simulation
- Robotics System General
- ROS 2 Deployment with OpenKruise
- Trouble Shooting
Slides / Talks
- ROS with Kubernetes Introduction in ROS TSC Meeting
- ROSCon 2023 ROS / ROS 2 with Kubernetes and KubeEdge / Talk
- ROS By the Bay Presentation Slide Deck
- ROS 2 with Kubernetes and KubeEdge Overview 2026 Slide Deck
Reference
- Kubernetes Official Documentation
- KubeEdge Official Documentation
- Kubernetes IN Docker
- Cilium Documentation
- ROS Noetic
- ROS 2 Jazzy
- ROS 2 Rolling
Author
- Tomoya Fujita [email protected]
関連プロジェクトを探す
読み込み中…
