Usage
Usage
Cache a Single Image
apiVersion: drop.corewire.io/v1alpha1
kind: CachedImage
metadata:
name: nginx
spec:
image: docker.io/library/nginx
tag: latestkubectl apply -f cachedimage.yaml
kubectl get cachedimagesTarget Specific Nodes
apiVersion: drop.corewire.io/v1alpha1
kind: CachedImage
metadata:
name: nginx-amd64
spec:
image: docker.io/library/nginx
tag: latest
nodeSelector:
kubernetes.io/arch: amd64Add Pacing
Create a PullPolicy to control pull rate:
apiVersion: drop.corewire.io/v1alpha1
kind: PullPolicy
metadata:
name: conservative
spec:
maxConcurrentNodes: 2
minDelayBetweenPulls: 30s
failureBackoff: 5mReference it:
apiVersion: drop.corewire.io/v1alpha1
kind: CachedImage
metadata:
name: nginx
spec:
image: docker.io/library/nginx
tag: latest
policyRef:
name: conservativeCache Multiple Images
apiVersion: drop.corewire.io/v1alpha1
kind: CachedImageSet
metadata:
name: platform-images
spec:
policyRef:
name: conservative
images:
- image: docker.io/library/nginx
tag: "1.27"
- image: docker.io/library/redis
tag: "7"
- image: gcr.io/distroless/static-debian12
tag: latestCheck Status
# Overview
kubectl get cachedimages
# Detailed status
kubectl describe cachedimage nginx
# Watch progress
kubectl get cachedimages -wA CachedImage is Ready when all targeted nodes have the image cached.
Last updated on