kube-image-keeper

by ENIX

Helm chartv3.0.1-rc.1App 3.0.1-rc.1MITVerified publisher

The keeper of your images in your cluster!

About this chart

kube-image-keeper (kuik)

[!IMPORTANT] kuik v3 is generally available: 3.0.0 is stable and ready for production. Use it for new installs. There is no migration path from v2 yet: keep your existing installs on v2, see Upgrading from v2. v2.3 is maintained on the 2.3.x branch: see its releases and its documentation on kuik.enix.io.

kuik (pronounced /kwɪk/, like "quick") is the shortname of kube-image-keeper.

✅ Its primary objective is to maximize the availability of Pod images strictly within the Kubernetes cluster it runs on.

✅ Its secondary goal is to ensure bulletproof reliability by keeping the manipulation of Kubernetes primitives to an absolute minimum.

Under the hood

It relies on three core mechanisms:

  • Image routing: rewrites Pod image paths on the fly during their creation to redirect them to a functional registry.
  • Image copy: mirror images used by the local cluster across registries, building a virtual, highly available registry.
  • Image monitoring: continuously tracks the availability of Pod images used within the local cluster across various registries.

[!NOTE] Image routing is performed at Pod creation by a lightweight MutatingWebhook that automatically rewrites the image path whenever the source registry becomes unavailable.

Status

This branch holds kuik v3, a rewrite generally available since 3.0.0:

  • v3.0 beta, reached on 2026-10-27: every feature planned for 3.0 is in.
  • v3.0 GA, reached on 2026-11-17 with 3.0.0: stable, ready for production.
  • v3.1, next.
FeatureStatus
Image routing (ImageAlternative, mutating webhook)Available since 3.0.0-alpha.2
Pull secret injection (secret syncer)Available since 3.0.0-alpha.3
Image copy (ImageMirror)Available since 3.0.0-alpha.4
Image monitoring (ImageMonitor)Tracking and checks available since 3.0.0-alpha.4, alternatives since 3.0.0-alpha.5
Admission validationAvailable since 3.0.0-alpha.5
Credentials from a cloud provider (auth.provider)Accepted and validated, but not used yet: kuik skips it and tries the next credential. Planned for v3.1 (#747)
Plain-HTTP alternatives and mirror destinations (insecure)Available since 3.0.0-alpha.2 for ImageAlternative, since 3.0.0-alpha.4 for ImageMirror
Private certificate authorities and self-signed certificates (tls)Available since 3.0.0-alpha.6
Migration from v2None yet: keep existing installs on v2 and use v3 for new installs; a migration path from the latest v2 will follow once v3 is battle-tested (#749)
  • Stable version: v3, for new installs. v2.3, documented on kuik.enix.io, is maintained for existing installs: bug fixes only, until a migration path exists.
  • v3 specification: docs/v3/, the design as decided before the implementation, kept as a historical record: what kuik does is in the user documentation (why).
  • Custom resources: ImageAlternative (routing), ImageMirror (copy) and ImageMonitor (monitoring), described in the CRD reference.

Development process and decisions are recorded in notes/. Contributions follow CONTRIBUTING.md.

Values

KeyTypeDefaultDescription
image.repositorystring"quay.io/enix/kube-image-keeper"Image repository, the same binary serves the three processes
image.pullPolicystring"IfNotPresent"Image pull policy
image.tagstring""Image tag, the chart appVersion by default
imagePullSecretslist[]Secrets used to pull the image
verbositystring"INFO"Logging verbosity
replicasint2Number of pods of a process. Admission sits in the path of every pod creation, so a second webhook replica keeps it answering while one is down or rolling. The reconciler and the secret syncer elect a leader, so a second replica stands by and takes the lease over while the first is down or rolling.
podAnnotationsobject{}Annotations added to the pods
podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Security context of the pods
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Security context of the containers
nodeSelectorobject{}Node selector of the pods
tolerationslist[]Tolerations of the pods
affinityobject{}Affinity of the pods
topologySpreadConstraintslist[]Topology spread constraints of the pods
deploymentStrategyobject{}Deployment strategy
priorityClassNamestring""Priority class of the pods
podDisruptionBudget.enabledbooltrueCreate a PodDisruptionBudget for each process, so that node drains never evict every replica of a process at once. It never keeps an unready pod from being evicted
podDisruptionBudget.maxUnavailableint or string1Pods of a process a voluntary disruption may take down at a time, a number or a percentage. With 1, a process with a single replica can still be drained. With 0 or 0%, the ready pods of that process can never be evicted, so a node drain blocks
envlist[]Extra environment variables of the containers
readinessProbeobject{"httpGet":{"path":"/readyz","port":8081}}Readiness probe of the containers
livenessProbeobject{"httpGet":{"path":"/healthz","port":8081}}Liveness probe of the containers
resources.requests.cpustring"50m"CPU requested by a container
resources.requests.memorystring"50Mi"Memory requested by a container
resources.limits.cpustring"1"CPU limit of a container
resources.limits.memorystring"512Mi"Memory limit of a container
webhook.replicasintthe root replicasNumber of webhook pods
webhook.certificate.createIssuerbooltrueCreate a self-signed Issuer for the webhook serving certificate
webhook.certificate.issuerRefobject{"kind":"Issuer","name":"kube-image-keeper-selfsigned-issuer"}Issuer the serving certificate is requested from, ignored when createIssuer is true
webhook.namespaceSelectorobject{}Namespace selector of the MutatingWebhookConfiguration: which namespaces the webhook rewrites pods in
webhook.shutdownDelaySecondsint10Seconds a stopping webhook pod keeps answering, unready, before it stops listening. A deleted pod stays a Service endpoint until every kube-proxy has seen it go, and the pods created meanwhile would be admitted unrouted: raise it on a cluster where endpoint updates take longer. The pod's termination grace period is this delay plus 10 seconds.
webhook.image.repositorystringthe root image.repositoryImage repository of the webhook pods
webhook.image.pullPolicystringthe root image.pullPolicyImage pull policy of the webhook pods
webhook.image.tagstringthe root image.tagImage tag of the webhook pods
webhook.imagePullSecretslistthe root imagePullSecretsSecrets used to pull the image of the webhook pods
webhook.verbositystringthe root verbosityLogging verbosity of the webhook
webhook.podAnnotationsobjectthe root podAnnotationsAnnotations added to the webhook pods, merged over the root ones
webhook.podSecurityContextobjectthe root podSecurityContextSecurity context of the webhook pods
webhook.securityContextobjectthe root securityContextSecurity context of the webhook container
webhook.nodeSelectorobjectthe root nodeSelectorNode selector of the webhook pods
webhook.tolerationslistthe root tolerationsTolerations of the webhook pods
webhook.affinityobjectthe root affinityAffinity of the webhook pods
webhook.topologySpreadConstraintslistthe root topologySpreadConstraintsTopology spread constraints of the webhook pods
webhook.deploymentStrategyobjectthe root deploymentStrategyDeployment strategy of the webhook
webhook.priorityClassNamestringthe root priorityClassNamePriority class of the webhook pods
webhook.podDisruptionBudget.enabledboolthe root podDisruptionBudget.enabledCreate the PodDisruptionBudget of the webhook
webhook.podDisruptionBudget.maxUnavailableint or stringthe root podDisruptionBudget.maxUnavailablePods of the webhook a voluntary disruption may take down at a time
webhook.envlistthe root envExtra environment variables of the webhook container, appended to the root ones
webhook.readinessProbeobjectthe root readinessProbeReadiness probe of the webhook container
webhook.livenessProbeobjectthe root livenessProbeLiveness probe of the webhook container
webhook.resourcesobjectthe root resourcesResources of the webhook container
webhook.serviceAccount.createboolthe root serviceAccount.createCreate the ServiceAccount of the webhook
webhook.serviceAccount.namestring""Name of the ServiceAccount of the webhook, <fullname>-webhook when empty
webhook.serviceAccount.annotationsobjectthe root serviceAccount.annotationsAnnotations added to the ServiceAccount of the webhook, merged over the root ones
webhook.serviceAccount.extraLabelsobjectthe root serviceAccount.extraLabelsLabels added to the ServiceAccount of the webhook, merged over the root ones
reconciler.replicasintthe root replicasNumber of reconciler pods
reconciler.image.repositorystringthe root image.repositoryImage repository of the reconciler pods
reconciler.image.pullPolicystringthe root image.pullPolicyImage pull policy of the reconciler pods
reconciler.image.tagstringthe root image.tagImage tag of the reconciler pods
reconciler.imagePullSecretslistthe root imagePullSecretsSecrets used to pull the image of the reconciler pods
reconciler.verbositystringthe root verbosityLogging verbosity of the reconciler
reconciler.podAnnotationsobjectthe root podAnnotationsAnnotations added to the reconciler pods, merged over the root ones
reconciler.podSecurityContextobjectthe root podSecurityContextSecurity context of the reconciler pods
reconciler.securityContextobjectthe root securityContextSecurity context of the reconciler container
reconciler.nodeSelectorobjectthe root nodeSelectorNode selector of the reconciler pods
reconciler.tolerationsli

Deploy kube-image-keeper with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-image-keeper on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkube-image-keeper is pinned at v3.0.1-rc.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply