kamal traefik
Kamal 使用 Traefik 代理请求到应用程序容器,从而实现零停机部署。
$ kamal traefik
Commands:
kamal traefik boot # Boot Traefik on servers
kamal traefik details # Show details about Traefik container from servers
kamal traefik help [COMMAND] # Describe subcommands or one specific subcommand
kamal traefik logs # Show log lines from Traefik on servers
kamal traefik reboot # Reboot Traefik on servers (stop container, remove container, start new container)
kamal traefik remove # Remove Traefik container and image from servers
kamal traefik restart # Restart existing Traefik container on servers
kamal traefik start # Start existing Traefik container on servers
kamal traefik stop # Stop existing Traefik container on servers
当要升级 Traefik 或更改其配置时,可以调用 kamal traefik reboot
。这将在每台服务器上造成短暂中断,并将提示进行确认。
可以与 kamal traefik reboot --rolling
使用滚动重启,以避免在所有服务器上同时重启。