fix(k8s): update registry-sync to use registry.spdy.io
Use registry.spdy.io instead of internal IP for base image syncing. Add library/busybox:latest to the sync list.
This commit is contained in:
@@ -24,10 +24,12 @@ spec:
|
|||||||
set -e
|
set -e
|
||||||
echo "=== Registry Sync: $(date) ==="
|
echo "=== Registry Sync: $(date) ==="
|
||||||
|
|
||||||
REGISTRY="10.100.9.70:5000"
|
REGISTRY="registry.spdy.io"
|
||||||
|
|
||||||
# Base images to cache
|
# Base images to cache (source of truth for all K8s deployments)
|
||||||
|
# Add new images here - all deployments should use registry.spdy.io/library/*
|
||||||
IMAGES="
|
IMAGES="
|
||||||
|
library/busybox:latest
|
||||||
library/node:20-slim
|
library/node:20-slim
|
||||||
library/node:22-slim
|
library/node:22-slim
|
||||||
library/node:22
|
library/node:22
|
||||||
@@ -40,7 +42,7 @@ spec:
|
|||||||
|
|
||||||
for img in $IMAGES; do
|
for img in $IMAGES; do
|
||||||
echo "Syncing docker.io/$img -> $REGISTRY/$img"
|
echo "Syncing docker.io/$img -> $REGISTRY/$img"
|
||||||
crane copy "docker.io/$img" "$REGISTRY/$img" --insecure || echo "WARN: Failed $img"
|
crane copy "docker.io/$img" "$REGISTRY/$img" || echo "WARN: Failed $img"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "=== Sync complete ==="
|
echo "=== Sync complete ==="
|
||||||
|
|||||||
Reference in New Issue
Block a user