Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
712c353
initial version of dynamic helmfile
cgeller Sep 10, 2026
a0e7594
make carla host configurable
cgeller Sep 10, 2026
468ac31
cleanup
cgeller Sep 10, 2026
f66427a
update monitoring and set service names
cgeller Sep 10, 2026
7eb303b
update names
cgeller Sep 10, 2026
2e318d5
update params
cgeller Sep 10, 2026
954c74b
temporary fix image volumes
cgeller Sep 10, 2026
36d3a60
clean default "/dev/null" |
cgeller Sep 10, 2026
d3b279d
update depends on
cgeller Sep 10, 2026
9ca627c
update values
cgeller Sep 10, 2026
536c03c
do not embedd variable defaults from .env
cgeller Sep 17, 2026
e83e02c
cleanup
cgeller Sep 17, 2026
a95373f
remove base.yaml.gotmpl
cgeller Sep 19, 2026
172335b
updates values
cgeller Sep 20, 2026
b8c2424
update values
cgeller Sep 20, 2026
60b1e6a
update for temporary local base chart usage
cgeller Sep 20, 2026
e46c034
update after rebase
cgeller Sep 20, 2026
eb48cc3
update
cgeller Sep 20, 2026
86d535c
update volume mounting
cgeller Sep 20, 2026
b932a8b
fix commands
cgeller Sep 20, 2026
7239589
fix carla host
cgeller Sep 20, 2026
137c0e9
fix environment
cgeller Sep 20, 2026
ec3f98c
add new usecase and option to disable services
cgeller Sep 20, 2026
d3a5772
fix scenario runner ros
cgeller Sep 20, 2026
fdb9ac8
update values
cgeller Sep 20, 2026
d2c0686
restructuring
cgeller Sep 20, 2026
907c967
update doc
cgeller Sep 20, 2026
ae847a0
update testing
cgeller Sep 20, 2026
bb0cc87
update after cleanup
cgeller Sep 21, 2026
e5cd7b8
update command
cgeller Sep 21, 2026
7beea82
add helmfile generation CI
cgeller Oct 6, 2026
fbfa77c
trigger helmfile action on k8s branch
cgeller Oct 6, 2026
02ddec9
reduce job name
cgeller Oct 6, 2026
35887f7
make prefix optional in network policy
cgeller Oct 6, 2026
4d61ff5
remove generated folder
cgeller Oct 6, 2026
31a62ac
update deployment description
cgeller Oct 6, 2026
2b01159
rename deployment folder
cgeller Oct 6, 2026
9c779e6
use image mounts
cgeller Oct 6, 2026
d1b8129
include env file in bundle
cgeller Oct 7, 2026
f5a83b4
update charts for carla scenario runner and server
cgeller Oct 12, 2026
72ac725
add gitlab pipeline
cgeller Oct 14, 2026
32ca72d
update openadscale integration
cgeller Oct 14, 2026
b864fee
update image versions
cgeller Oct 15, 2026
392e92e
simplify chart map
cgeller Oct 15, 2026
b36bfce
make CARLA_PORT configurable
cgeller Oct 15, 2026
80a4713
rename OPENADSIM_PATH to PROJECT_PATH and drop runtime_env from chart…
cgeller Oct 15, 2026
fe28daf
cleanup k8s setup
cgeller Oct 19, 2026
b4a069e
fix readme
cgeller Oct 19, 2026
6da62f1
simplify chart map
cgeller Oct 19, 2026
4300f6d
cleanup helmfile generation
cgeller Oct 19, 2026
053419d
temporary modify pcod service
cgeller Oct 19, 2026
bbf21bc
fix gitlab ci
cgeller Oct 19, 2026
b669d9e
update ci helmfiles
cgeller Oct 20, 2026
cdece29
fix gitlab pipeline
cgeller Oct 20, 2026
da8b8db
cleanup
cgeller Oct 26, 2026
275d4e6
cleanup
cgeller Oct 26, 2026
6ba45b6
move volume policies to services
cgeller Oct 30, 2026
6b3b21e
Update .github/workflows/helmfile.yml
cgeller Oct 30, 2026
d873269
Update .github/workflows/helmfile.yml
cgeller Oct 30, 2026
17a6e8c
Update deployment/addons/helmfile.yaml
cgeller Oct 30, 2026
37ecb7a
Update deployment/addons/charts/middleware-bridge-network-policy/Char…
cgeller Oct 30, 2026
3453e94
cleanup helfile
cgeller Oct 30, 2026
ac5c380
rename middleware bridge network policy
cgeller Oct 30, 2026
a8432a4
move stage definition to top
cgeller Oct 30, 2026
97d9f5d
cleanup scenario runner command
cgeller Oct 30, 2026
24abfcd
Update deployment/helmfile.yaml
cgeller Oct 30, 2026
99fab44
Update deployment/README.md
cgeller Oct 30, 2026
90c6606
cleanup deployment folder
cgeller Oct 30, 2026
0a842f3
readded values file
cgeller Oct 30, 2026
6a28d03
update chart map
cgeller Oct 30, 2026
4daaa41
add node documentation
cgeller Oct 30, 2026
2041e04
do not expose CARLA_SERVER and TRITON_HOST anymore
cgeller Oct 30, 2026
edc43d8
drop temporary k8s trigger and add ghcr cleanup
cgeller Oct 30, 2026
c323d99
temporarily use openads-helm feature branch for helmfile oci
cgeller Oct 30, 2026
c153199
drop sha tags of gui image
cgeller Oct 30, 2026
1b5a402
Revert "temporarily use openads-helm feature branch for helmfile oci"
cgeller Oct 30, 2026
199f36e
do not expose CARLA_HOST in compose overrides
cgeller Oct 30, 2026
70e5f32
update to openadscale
cgeller Oct 30, 2026
7433b65
cleanup chart map
cgeller Oct 31, 2026
b4daee3
cleanup carla environment variables
cgeller Oct 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ghcr-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ghcr-cleanup

on:
schedule:
- cron: "0 0 * * *" # every day at 00:00
workflow_dispatch:

permissions:
packages: write

jobs:
helmfile:
uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-cleanup.yml@main

gui:
name: Cleanup gui
runs-on: ubuntu-latest
steps:
- name: Cleanup ${{ github.event.repository.name }}/gui
uses: dataaxiom/ghcr-cleanup-action@v1.2.2
with:
packages: ${{ github.event.repository.name }}/gui
dry-run: false
use-regex: true
skip-regex-checks: true
older-than: 1 month
exclude-tags: '^(v[0-9]+\.[0-9]+\.[0-9]+|latest)$' # v1.2.3, latest
delete-tags: ".*"
delete-untagged: true
delete-ghost-images: true
delete-partial-images: true
delete-orphaned-images: true
validate: true
1 change: 0 additions & 1 deletion .github/workflows/gui-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
type=ref,event=tag
type=sha

- name: Build and push image
uses: docker/build-push-action@v6
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/helmfile-oci.yml
Comment thread
cgeller marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: helmfile-oci

on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
helmfile-oci:
uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@main
with:
compose-file: docker-compose.yml
include-env-file-in-bundle: true
chart-map: deployment/chart-map.yaml
profiles: carla,traffic,automated-testing,no-perception,planning
output-dir: deployment/generated
helmfile-entrypoint: deployment/helmfile.yaml
bundle-dir: deployment
17 changes: 17 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
stages:
- build
- testing

include:
- remote: https://raw.githubusercontent.com/openads-project/openads-helm/main/.gitlab-ci/reusable-helmfile-oci.yml
inputs:
compose-file: docker-compose.yml
include-env-file-in-bundle: true
chart-map: deployment/chart-map.yaml
profiles: carla,traffic,automated-testing,no-perception,planning
output-dir: deployment/generated
helmfile-entrypoint: deployment/helmfile.yaml
bundle-dir: deployment
- component: gitlab.ika.rwth-aachen.de/fb-fi/ops/openadscale/openadscale@main
inputs:
scenario-search-pattern: scenario.generator/**/*.xosc
11 changes: 9 additions & 2 deletions carla-simulation/carla_client/set_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse
import logging
import math
import os
import signal
import time

Expand Down Expand Up @@ -46,8 +47,14 @@ def stop(_signum, _frame):

def parse_args():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--host", default="carla-server", help="CARLA server host")
parser.add_argument("-p", "--port", default=2000, type=int, help="CARLA server port")
parser.add_argument(
"--host", default=os.environ.get("CARLA_HOST", "carla-server"),
help="CARLA server host",
)
parser.add_argument(
"-p", "--port", default=os.environ.get("CARLA_PORT", "2000"),
type=int, help="CARLA server port",
)
parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port")
parser.add_argument(
"-n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ services:
file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml
service: ros2-x11-service
environment:
CARLA_HOST: ${CARLA_HOST:-carla-server}
CARLA_PORT: ${CARLA_PORT:-2000}
MAP: ${MAP:-}
CUSTOM_OPENDRIVE: ${CUSTOM_OPENDRIVE:-}
CUSTOM_LANELET: ${CUSTOM_LANELET:-}
Expand All @@ -44,6 +42,9 @@ services:
SCENARIOS_DIR="$$(dirname "/$${CUSTOM_OPENDRIVE#/}")"
fi
exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \
use_sim_time:=$${USE_SIM_TIME} \
host:=$${CARLA_HOST} \
port:=$${CARLA_PORT} \
scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \
scenarios_dir:=$${SCENARIOS_DIR}

Expand Down
9 changes: 5 additions & 4 deletions carla-simulation/carla_scenario_runner/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ services:
image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.2
environment:
USE_SIM_TIME: ${USE_SIM_TIME:-true}
# CARLA_HOST: carla-server
CARLA_HOST: ${CARLA_HOST:-carla-server}
# CARLA_PORT: 2000
CARLA_PORT: ${CARLA_PORT:-2000}
CARLA_HOST: carla-server
CARLA_PORT: 2000
ROLE_NAME: ego_vehicle
SCENARIO_RUNNER_PATH: /docker-ros/additional-files
WAIT_FOR_EGO: true
Expand Down Expand Up @@ -64,6 +62,9 @@ services:
SCENARIOS_DIR="$$(dirname "/$${CUSTOM_OPENDRIVE#/}")"
fi
exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \
use_sim_time:=$${USE_SIM_TIME} \
host:=$${CARLA_HOST} \
port:=$${CARLA_PORT} \
scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \
scenarios_dir:=$${SCENARIOS_DIR}

Expand Down
55 changes: 55 additions & 0 deletions deployment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Helmfile deployment

This directory contains the OpenADSim-specific inputs and manual additions for the [openads-helm generator](https://github.com/openads-project/openads-helm/tree/main/utils/generate_helmfile_from_compose), which converts `docker-compose.yml` into a Helmfile setup.

## Layout

- `helmfile.yaml` is the entrypoint. It loads the add-ons and the generated services.
- `chart-map.yaml` contains chart references and conversion rules that cannot be derived from Compose.
- `addons/` contains manually maintained releases: a NetworkPolicy that isolates the middleware bridge per stack, deployed with the `carla` profile.
- `generated/` is the generator output. It is ignored by Git and must not be committed.

## CI

The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and publish the `deployment` directory together with the root `.env` as OCI bundle `<registry>/<repository>/helmfile`, tagged with the branch or tag name. Pull requests publish under their source branch name.

The scheduled [cleanup workflow](../.github/workflows/ghcr-cleanup.yml) deletes bundles older than one month except `main` and `vX.Y.Z`. On GitLab, the container registry cleanup policy of the project applies the same rule.

## Local usage

Generate the Helmfile with a sibling checkout of `openads-helm`:

```sh
# openadsim$
git clone https://github.com/openads-project/openads-helm ../openads-helm
python3 ../openads-helm/utils/generate_helmfile_from_compose/scripts/generate_helmfile_from_compose.py \
Comment thread
cgeller marked this conversation as resolved.
Resolved
docker-compose.yml \
--env-file .env \
--chart-map deployment/chart-map.yaml \
--output-dir deployment/generated
```

Load the runtime environment, then validate and deploy. `COMPOSE_PROFILES` selects the services as in Compose. `PROJECT_PATH` must be the absolute checkout path on the Kubernetes node, as it is used for `hostPath` volumes.

```sh
set -a; . ./.env; set +a
export PROJECT_PATH="$(pwd)"
Comment thread
lreiher marked this conversation as resolved.
Resolved

helmfile --file deployment/helmfile.yaml template --concurrency 1
helmfile --file deployment/helmfile.yaml apply
```

## Optional settings

To run all services on one node of a multi-node cluster, e.g. the node with the checkout at `PROJECT_PATH`, export its hostname as `NODE`:

```sh
kubectl get nodes -L kubernetes.io/hostname
export NODE=worker-1
```

`DEPLOYMENT_PREFIX` separates several stacks in one namespace. References to other services of the stack are prefixed automatically, e.g. `CARLA_HOST: carla-server` becomes `sim1-carla-server`:

```sh
export DEPLOYMENT_PREFIX=sim1
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v2
name: ros-middleware-bridge-network-policy
description: NetworkPolicy to isolate ros-middleware-bridges in concurrent deployments
type: application
version: 0.1.0
Comment thread
lreiher marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- $prefix := .Values.namePrefix | default "" -}}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ .Release.Name }}
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.middlewareBridgeName | trimPrefix "-" | quote }}
policyTypes:
- Ingress
- Egress
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | trimPrefix "-" | quote }}
egress:
- to:
- podSelector:
matchLabels:
app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | trimPrefix "-" | quote }}
- to:
- podSelector:
matchLabels:
app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.zenohRouterName | trimPrefix "-" | quote }}
ports:
- protocol: TCP
port: {{ .Values.zenohPort }}
- protocol: UDP
port: {{ .Values.zenohPort }}
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- protocol: UDP
port: 53
- protocol: TCP
port: 53
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namePrefix: ""
middlewareBridgeName: ros-middleware-bridge
carlaServerName: carla-server
zenohRouterName: zenoh-router
zenohPort: 7447
12 changes: 12 additions & 0 deletions deployment/addons/helmfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
environments:
default:
values:
- ../generated/environments/services.yaml.gotmpl
---
releases:
# NetworkPolicy to isolate ros-middleware-bridges in concurrent deployments
- name: '{{ printf "%s-middleware-bridge-policy" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}'
chart: charts/ros-middleware-bridge-network-policy
condition: serviceEnabled.ros-middleware-bridge.enabled
values:
- values.yaml.gotmpl
1 change: 1 addition & 0 deletions deployment/addons/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }}
43 changes: 43 additions & 0 deletions deployment/chart-map.yaml
Comment thread
cgeller marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
excluded_profiles:
- donotuse
- gui
- sumo
services:
# charts centrally maintained in https://github.com/openads-project/openads-helm/tree/main/charts
zenoh-router:
chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router
version: 0.2.10
triton-server:
chart: oci://ghcr.io/openads-project/openads-helm/triton-server
version: "26.05"
# nested charts in https://github.com/openads-project/carla-simulator/tree/main/deployment/helm
carla-server:
chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server
version: 0.10.0-1.1.1
carla-client:
chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client
version: 0.10.0-1.1.1
# nested charts in https://github.com/openads-project/carla-ros-bridge/tree/main/deployment/helm
carla-ackermann-control:
chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control
version: 0.10.0-1.2.0-carla-ackermann-control
carla-manual-control:
chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control
version: 0.10.0-1.2.0-carla-manual-control
carla-ros-bridge:
chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge
version: 0.10.0-1.2.0-carla-ros-bridge
carla-spawn-objects:
chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects
version: 0.10.0-1.2.0-carla-spawn-objects
# nested chart in https://github.com/openads-project/carla-scenario-runner/tree/main/deployment/helm
carla-scenario-runner-ros-automated-testing: &scenario-runner
chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros
version: 0.10.0-1.1.2
volume_policies:
/scenarios: bind
carla-scenario-runner-ros-manual-testing: *scenario-runner
# chart derived from image, writable volume mounted from host
monitoring.rviz-carla:
volume_policies:
/docker-ros/ws/monitoring-volume: bind
2 changes: 2 additions & 0 deletions deployment/generated/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
3 changes: 3 additions & 0 deletions deployment/helmfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
helmfiles:
- path: addons/helmfile.yaml
- path: generated/helmfile.yaml # auto-generated by openads-helm
Comment thread
cgeller marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ services:
service: perception.point-cloud-object-detection
profiles:
- perception
depends_on:
depends_on:
- triton-server
environment:
PARAMS: /params.yml
TRITON_SERVER_URL: triton-server:8001
volumes:
- ./params.yml:/params.yml
- type: image
Expand Down
Loading