Provide pre and post reboot hooks for Traefik, that can be used to remove/add to an external load balancer to prevent requests from being sent during the reboot. Works best with the --rolling setting, where each hook is called once per host.
4 lines
122 B
Bash
Executable File
4 lines
122 B
Bash
Executable File
#!/bin/sh
|
|
echo "Rebooted Traefik on ${KAMAL_HOSTS}"
|
|
mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/post-traefik-reboot
|