mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
When Floci runs in a container and restarts on a different Docker network (FLOCI_SERVICES_DOCKER_NETWORK changed, or Floci moved from host networking to a bridge), restoreCluster adopted the surviving k3s container where it was. Docker isolates bridge networks from each other, so Floci could not reach the API server, the readiness poller never marked the cluster ACTIVE, and every add-on, access entry and access policy call kept failing with "Cluster must be ACTIVE". A survivor that is not on the network Floci now starts clusters on is replaced, the way a survivor whose node capacity changed already is: the data volume is kept, so the workloads come back. Floci on the host reaches k3s through the published port, so there a survivor is kept wherever it is. Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>