Skip to content

Commit 020c15d

Browse files
committed
test(e2e): pin the ghcr-mirror image via mirror.gcr.io and bound its storage
- Pull registry:2 from mirror.gcr.io and digest-pin it, as every other hack/ helper manifest does, so the mirror's own image is not a fresh anonymous Docker Hub pull -- the flaky-egress dependency this PR removes. - Bound the cache and tmp emptyDir volumes with sizeLimit and add matching ephemeral-storage requests/limits so a runaway cache cannot fill node-local storage and evict unrelated Pods (CodeRabbit). Refs #3513 Signed-off-by: IvanHunters <[email protected]>
1 parent 65889b6 commit 020c15d

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎hack/e2e-ghcr-mirror.yaml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ spec:
7676
type: RuntimeDefault
7777
containers:
7878
- name: registry
79-
# registry:2 as a pull-through cache. Digest-pin and/or preload in CI so
80-
# the mirror's own image is not a fresh flaky pull (see assumption 1).
81-
image: docker.io/library/registry:2.8.3
79+
# registry:2 as a pull-through cache. Pulled from mirror.gcr.io and
80+
# digest-pinned (as every other hack/ helper manifest does) so the
81+
# mirror's own image is not a fresh anonymous Docker Hub pull -- the very
82+
# flaky-egress dependency this PR exists to remove.
83+
image: mirror.gcr.io/library/registry:2.8.3@sha256:a3d8aaa63ed8681a604f1dea0aa03f100d5895b6a58ace528858a7b332415373
8284
env:
8385
# Pull-through cache: proxy every request to ghcr.io and cache locally.
8486
- name: REGISTRY_PROXY_REMOTEURL
@@ -101,8 +103,13 @@ spec:
101103
requests:
102104
cpu: 50m
103105
memory: 64Mi
106+
ephemeral-storage: 100Mi
104107
limits:
105108
memory: 512Mi
109+
# Bounds the container writable layer plus the cache/tmp emptyDirs
110+
# below, so a runaway cache cannot fill node-local storage and evict
111+
# unrelated Pods. Sized for the CI image set (kubelet + a few).
112+
ephemeral-storage: 3Gi
106113
securityContext:
107114
allowPrivilegeEscalation: false
108115
capabilities:
@@ -119,9 +126,11 @@ spec:
119126
mountPath: /tmp
120127
volumes:
121128
- name: cache
122-
emptyDir: {}
129+
emptyDir:
130+
sizeLimit: 2Gi
123131
- name: tmp
124-
emptyDir: {}
132+
emptyDir:
133+
sizeLimit: 256Mi
125134
---
126135
# CI-only: allow tenant worker VM Pods to reach the mirror.
127136
#

0 commit comments

Comments
 (0)