3 minute read
This document outlines how Shoot reconciliation and deletion works for a Shoot with the registry-cache extension enabled.
This section outlines how the reconciliation works for a Shoot with the registry-cache extension enabled.
This section outlines how the extension enablement/reconciliation works, e.g., the extension has been added to the Shoot spec.
registry-cache
consists of the following steps:kube-system
namespace that have the upstream-host
label. It will return an error (and retry in exponential backoff) until the Services count matches the configured registries count.http://<cluster-ip>:5000
) which can be used to access the registry cache from within the Shoot cluster. <cluster-ip>
is the cluster IP of the registry cache Service. The cluster IP of a Service is assigned by the Kubernetes API server on Service creation.extensions.gardener.cloud/registry-cache=true
). pkg/webhook/cache/ensurer.go contains an implementation of the genericmutator.Ensurer interface.RegistryConfig
entries in the OperatingSystemConfig CRI configuration that corresponds to configured registry caches in the Shoot. The RegistryConfig
readiness probe is enabled so that gardener-node-agent creates a hosts.toml
containerd registry configuration file when all RegistryConfig
hosts are reachable.This section outlines how the extension disablement works, i.e., the extension has to be removed from the Shoot spec.
RegistryConfig
entries will be added or updated. The gardener-node-agent detects that RegistryConfig
entries have been removed or changed and deletes or updates corresponding hosts.toml
configuration files under /etc/containerd/certs.d
folder.This section outlines how the deletion works for a Shoot with the registry-cache extension enabled.
Was this page helpful?