Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 786 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 786 Bytes

check-cluster-images

This image can be used to check that all your running Docker images are still available

  • Check that running kubernetes Pods/Jobs/CronJobs images are still available
  • Send missing images alert in mattermost

Example usage :

docker run \
    -v ./.kubeconfig:/app/.kubeconfig \
    -e KUBECONFIG=/app/.kubeconfig \
    -e KUBECONTEXT=prod \
    -e MATTERMOST_CHANNEL=alerts \
    # optional mattermost notification
    -e MATTERMOST_WEBHOOK_URL=prod \
    # optional JQ filter to include/exclude images (default all)
    -e IMAGES_JQ_FILTER=' | select(. | startswith("ghcr.io") | select(. | startswith("ghcr.io/yyy") | not)' \
    ghcr.io/socialgouv/check-cluster-images:1.1.0

There's a sample CronJob provided in ./cronjob.yaml