Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions files/traefik/rules/cvmfs-stratum0-router.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tcp:
routers:
cvmfs-stratum0-rsync:
rule: "HostSNI(`*`)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a catchall router. Even though routers get higher priority, the longer the rulestext is, I would prefer to specify a Host here.

@domgz domgz Jul 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, there is no HTTP Host header nor TLS handshake in an SSH connection, I don't think there is a way around this.

The port that the cvmfs-rsync entry point uses is afaik the only way Traefik can identify the intended destination of the traffic.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I remember I had to handle it the same way with RabbitMQ. Since this is on a different entrypoint, this should be fine.

service: cvmfs-stratum0-rsync
entryPoints:
- cvmfs-rsync
6 changes: 6 additions & 0 deletions files/traefik/rules/cvmfs-stratum0-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tcp:
services:
cvmfs-stratum0-rsync:
loadBalancer:
servers:
- address: "cvmfs-stratum0.bi.privat:22"
5 changes: 5 additions & 0 deletions group_vars/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ traefik_containers:
- --entryPoints.websecure.address=:443
- --entryPoints.amqps.address=:5671
- --entryPoints.influxdb.address=:8086
- --entryPoints.cvmfs-rsync.address=:5432
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- --entryPoints.web.http.redirections.entryPoint.scheme=https
- --entryPoints.metrics.address=:8082
Expand Down Expand Up @@ -161,6 +162,10 @@ traefik_containers:
published_port: 8086
protocol: tcp
mode: host
- target_port: 5432

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't forget the Configure Firewall task in the playbook itself. 🤓

published_port: 5432
protocol: tcp
mode: host

secrets:
- secret_name: aws_shared_credentials
Expand Down
Loading