mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 00:21:51 -05:00
A chart written for EKS names its own account's images by the AWS registry host, <account>.dkr.ecr.<region>.amazonaws.com. The registries.yaml Floci gives a k3s node mirrored only Floci's localhost forms, so containerd sent those pulls to AWS, where they fail. The generated registries.yaml now also mirrors the cluster's and the default account's registry hosts as AWS names them, across the regions of the cluster's partition, under that partition's DNS suffix (amazonaws.com.cn in the China regions). containerd still tries AWS last, so an image Floci does not hold is looked for there. Other accounts' registries, such as the ones EKS add-on images come from, and public registries are not mirrored. Floci's registry endpoint serves a mirror request whose ns names an account's AWS registry host from that account's repositories in that region, when the region belongs to the suffix's partition. A request sent with an AWS registry host as its Host is not routed there. A node now records the digest of the registries.yaml it was started with in a label. When Floci starts, a surviving node whose label does not match the registries.yaml Floci gives it now, such as one started before these entries existed, is replaced on its data volume, as one with another capacity is, so existing clusters get the new mirrors too. It is kept while the registry is unavailable or the mirror is off. EksVpcPodNetworkNightlyIntegrationTest, which #9288 added, now skips without -Dnightly.checks.enabled=true, as every other nightly check does, so a local test run with Docker no longer starts its k3s node. Closes #5711