Post

Breaking the Harbor-Multus Circular Dependency with Cached Images

Breaking the Harbor-Multus Circular Dependency with Cached Images

This push eliminates a circular startup dependency by configuring the Multus DaemonSet to use locally cached, digest-pinned images, allowing pod networking to come up before Harbor is available.

Image Pull Policy Change in Multus DaemonSet

The multus.yaml manifest switches both the installer init container and the multus-daemon container from imagePullPolicy: Always to IfNotPresent. The images are digest-pinned, so the kubelet can start Multus from the node’s CRI cache after a reboot without pulling from Harbor — which itself needs Multus pod networking to serve images. A comment in the manifest explains the rationale: the cached image lets Multus start while Harbor core waits for a pod sandbox on the same worker.

Documented Recovery Procedure

Two operations docs now capture the recovery flow. docs/harbor-image-mirroring.md notes that the system-node-critical Multus DaemonSet uses IfNotPresent for its digest-pinned installer and daemon, and adds verification steps: check the exact Harbor image reference and digest in each node’s talosctl image list before maintenance, then verify Multus readiness on every node and an HTTP 401 registry authentication challenge after recovery. openwiki/operations/harbor-oci.md mirrors this guidance and emphasizes retaining the independent bootstrap path for nodes with empty caches.

Platform Pattern for Circular Dependency Breaking

This pattern — pinning critical networking components to digests and allowing IfNotPresent so they can start from local cache — transfers to any platform team that runs a registry inside the cluster it serves. The key invariants are: the component must be system-node-critical (or otherwise scheduled early), its image must be digest-pinned and pre-pulled onto every node, and the runbook must verify cache presence before planned maintenance. If the cache is missing, the independent bootstrap path (e.g., a static pod or node-local image load) becomes the fallback.

This post is licensed under CC BY 4.0 by the author.