Skip to content

Flux Image Reflect Quick Fix - ImageRepository Configuration

DodaTech Updated 2026-06-26 1 min read

Flux ImageRepository scans container registries for image versions and updates policies. Misconfigured scan intervals or tag filters cause missed or excessive image updates. This guide covers the fix.

Quick Fix

Wrong

apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
  name: app-image
spec:
  interval: 1m
  image: ghcr.io/org/my-app

The issue: interval: 1m is too frequent and may hit registry rate limits. No exclusion or filter for tags, so Flux scans all tags including build artifacts.

apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
  name: app-image
spec:
  interval: 10m
  image: ghcr.io/org/my-app
  secretRef:
    name: registry-auth
  exclusion:
  - '^.*-rc.*$'
  - '^.*-beta.*$'
# Expected output after applying the fix
# ImageRepository scanning ghcr.io/org/my-app every 10m
# Excludes release candidates and beta tags
# Tag list updated in image policy
# Status: True (Ready)

Prevention

  • Set interval to 10m or higher to avoid rate limits
  • Use exclusion regex patterns to filter out unwanted tags
  • Use filter patterns with semver for production image policies
  • Configure secretRef for private registry authentication
  • Monitor scan status with kubectl get imagerepository

DodaTech Tools

Doda Browser's image scanner shows available tags and scan history. DodaZIP archives image repository configurations. Durga Antivirus Pro validates image sources.

FAQ

How does ImageRepository work with ImagePolicy?

ImagePolicy selects specific tags from the ImageRepository's tag list based on semver range or alphabetical ordering. The ImageRepository provides the candidate tag list. ||| Can I scan multiple images with one ImageRepository? No, each ImageRepository scans a single image repository. Create separate resources for each image you want to track. ||| What happens if the registry is unavailable during scan? Flux retries at the next interval. The last cached tag list is preserved and used by ImagePolicy until the scan succeeds.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro