mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
endpoint-mode=host always returned https://localhost:<port>, so a cluster was only usable from the machine running Floci. The new floci.services.eks.endpoint-host (FLOCI_SERVICES_EKS_ENDPOINT_HOST) is advertised instead, and added to the k3s certificate as a SAN so the endpoint still verifies against the cluster CA. It follows rds.endpoint-host. The value must be a DNS name, a dotted IPv4 address or an IPv6 address; an IPv6 literal is bracketed in the endpoint URL. A scheme, port, path or list stops Floci at startup, before persisted clusters are restored, so a typo cannot leave every restored cluster FAILED. Network mode inside a container advertises the container name, so it ignores the setting. The SAN is fixed when the container is created, so the container carries the host it was made for as a label, and an adopted container advertises that host rather than the configured one. When the two differ on restore, the surviving container is replaced (data volume and port kept), as a node-capacity change already does; if the replacement fails, the old container stays and keeps advertising the host its certificate carries. Unset, nothing changes: no label is added and existing containers are adopted as before. Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>