diff --git a/charts/haproxy/templates/bin/_anchor.tpl b/charts/haproxy/templates/bin/_anchor.tpl index f8457e62..74686dbe 100644 --- a/charts/haproxy/templates/bin/_anchor.tpl +++ b/charts/haproxy/templates/bin/_anchor.tpl @@ -134,6 +134,8 @@ install_config() { echo Replacing HAProxy config file "$HAPROXY_CONF" with: cat "$NEXT_HAPROXY_CONF" echo + # ensure data blocks are flushed before rename + sync mv "$NEXT_HAPROXY_CONF" "$HAPROXY_CONF" else echo "New config failed validation, refusing to replace."