Fix volume declarations

Did not expect to create anonymous volumes, see
https://stackoverflow.com/questions/46166304/docker-compose-volumes-without-colon
for more details. Now the host directories should be mounted. While here
try setting :ro to the paths we are not expecting to modify. The
/lib/modules :ro flag is based on
3cbd8258eb/cilium-lb.yaml (L143-L145)
This commit is contained in:
Patrik Lundin 2024-08-20 12:31:42 +02:00
parent 79f2018d1b
commit dd0493f869
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -2,9 +2,9 @@ services:
l4lb:
image: "quay.io/cilium/cilium:<%= @cilium_version %>"
volumes:
- /sys/fs/bpf
- /lib/modules
- /var/run/netns
- /sys/fs/bpf:/sys/fs/bpf
- /lib/modules:/lib/modules:ro
- /var/run/netns:/var/run/netns:ro
network_mode: "host"
privileged: true
command: