mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
ci: restart veth-config on failure (#10421)
For improved resilience, any failure during the startup of `veth-config` should restart the container and try again to attach it.
This commit is contained in:
@@ -416,6 +416,7 @@ services:
|
||||
pid: host
|
||||
network_mode: host
|
||||
privileged: true
|
||||
restart: on-failure
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
@@ -427,7 +428,8 @@ services:
|
||||
# Safe to attach to all veth interfaces on the host
|
||||
for dev in $$VETHS; do
|
||||
echo "Attaching XDP to: $$dev"
|
||||
ip link set dev $$dev xdpdrv obj /xdp/xdp_pass.o sec xdp 2>/dev/null
|
||||
ip link set dev $$dev xdpdrv off # Clear any existing XDP program.
|
||||
ip link set dev $$dev xdpdrv obj /xdp/xdp_pass.o sec xdp
|
||||
done
|
||||
|
||||
echo "Done configuring $$(echo "$$VETHS" | wc -w) veth interfaces"
|
||||
|
||||
Reference in New Issue
Block a user