Skip to content

Commit d12c017

Browse files
committed
ci: Eliminate 'failed to pull the image' type of failures with a prepuller
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent 6b7e70a commit d12c017

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed

.tekton/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ tkn pipelinerun delete <selected-pipelinerun-here>
106106

107107
Install and configure resources from https://github.com/3scale-ops/tekton-pipelinerun-cleaner
108108

109+
#### Preventing image pull failures with a prepuller
110+
111+
Maintain, and install the list of used images in the `python-tracer-prepuller.yaml`:
112+
````bash
113+
kubectl apply --filename python-tracer-prepuller.yaml
114+
````
109115

110116
## Integrate with GitHub
111117

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: python-tracer-prepuller
5+
spec:
6+
selector:
7+
matchLabels:
8+
name: python-tracer-prepuller
9+
template:
10+
metadata:
11+
labels:
12+
name: python-tracer-prepuller
13+
spec:
14+
# Configure an init container for each image you want to pull
15+
initContainers:
16+
- name: prepuller-git
17+
# alpine/git:2.43.0
18+
image: alpine/git@sha256:6ff4de047dcc8f0c7d75d2efff63fbc189e87d2f458305f2cc8f165ff83309cf
19+
command: ["sh", "-c", "'true'"]
20+
- name: prepuller-google-cloud-pubsub
21+
# egymgmbh/pubsub-emulator:gh-mb117
22+
image: egymgmbh/pubsub-emulator@sha256:88897fa72337b22a8edabf17a8b30bf9d9c6388b7c7e6d8c2b5e5c96d73fede1
23+
command: ["sh", "-c", "'true'"]
24+
- name: prepuller-cassandra
25+
# cassandra:3.11.16-jammy
26+
image: cassandra@sha256:7d32a79e9adb4ca8c26f798e4a44ec8438da99c6bda2969410ea46cbdb0b4b94
27+
command: ["sh", "-c", "'true'"]
28+
- name: prepuller-rabbitmq
29+
# rabbitmq:3.13.0
30+
image: rabbitmq@sha256:27819d7be883b8aea04b9a244460181ef97427a98f8323b39402d65e6eb2ce6f
31+
command: ["sh", "-c", "'true'"]
32+
- name: prepuller-couchbase
33+
# couchbase/server-sandbox:5.5.1
34+
image: couchbase/server-sandbox@sha256:d04302ea7782a0f53c3f371971138b339097d5e41f4154def5bdecc5bbb2e1da
35+
command: ["sh", "-c", "'true'"]
36+
- name: prepuller-redis
37+
# redis:7.2.4-bookworm
38+
image: redis@sha256:fe98b2d39d462d06a7360e2860dd6ceff930745e3731eccb3c1406dd0dd7f744
39+
command: ["sh", "-c", "'true'"]
40+
- name: prepuller-mongo
41+
# mongo:7.0.6
42+
image: mongo@sha256:125bda8abe859bcebc47e4a7e0921508d3bcb47725d261f0a2bcf4ea5c837dd5
43+
command: ["sh", "-c", "'true'"]
44+
- name: prepuller-mariadb
45+
# mariadb:11.3.2
46+
image: mariadb@sha256:851f05fe1e4cb290442c1b12b7108436a33fd8f6a733d4989950322d06d45c65
47+
command: ["sh", "-c", "'true'"]
48+
- name: prepuller-postgres
49+
# postgres:16.2-bookworm
50+
image: postgres@sha256:3bfb87432e26badf72d727a0c5f5bb7b81438cd9baec5be8531c70a42b07adc6
51+
command: ["sh", "-c", "'true'"]
52+
- name: prepuller-30
53+
# 3.0.6-bullseye
54+
image: ruby@sha256:3166618469ad8a3190d80f43b322818fafb4bfac0b4882255eee3346af2a0a35
55+
command: ["sh", "-c", "'true'"]
56+
- name: prepuller-31
57+
# 3.1.4-bookworm
58+
image: ruby@sha256:ec69284bcbceb0a23ffc070ef2e0e8eb0fe495c20efbd51846b103338c3da1e4
59+
command: ["sh", "-c", "'true'"]
60+
- name: prepuller-32
61+
# 3.2.3-bookworm
62+
image: ruby@sha256:007d2edd515f9cfc8c5c571486aca4fc4a25c903d004decee302961bb8c636ed
63+
command: ["sh", "-c", "'true'"]
64+
- name: prepuller-33
65+
# 3.3.1-bookworm
66+
image: ruby@sha256:5cf0004738f54bd67e4c4316394208ca38a6726eda7a1b0586d95601aad86e5d
67+
command: ["sh", "-c", "'true'"]
68+
- name: prepuller-37
69+
# 3.7.17-bookworm
70+
image: "python@sha256:2011a37d2a08fe83dd9ff923e0f83bfd7290152e2e6afe359bde1453170d9bdc"
71+
command: ["sh", "-c", "'true'"]
72+
- name: prepuller-38
73+
# 3.8.18-bookworm
74+
image: "python@sha256:625008535504ab68868ca06d1bdd868dee92a9878d5b55fc240af7ceb38b7183"
75+
command: ["sh", "-c", "'true'"]
76+
- name: prepuller-39
77+
# 3.9.18-bookworm
78+
image: "python@sha256:530d4ba717be787c0e2d011aa107edac6d721f8c06fe6d44708d4aa5e9bc5ec9"
79+
command: ["sh", "-c", "'true'"]
80+
- name: prepuller-310
81+
# 3.10.13-bookworm
82+
image: "python@sha256:c970ff53939772f47b0672e380328afb50d8fd1c0568ed4f82c22effc54244fc"
83+
command: ["sh", "-c", "'true'"]
84+
- name: prepuller-311
85+
# 3.11.8-bookworm
86+
image: "python@sha256:72afb375030b13c8c9cb72ba1d8c410f25307c2dbbd7d59f9c6ccea5cb152ff9"
87+
command: ["sh", "-c", "'true'"]
88+
- name: prepuller-312
89+
# 3.12.2-bookworm
90+
image: "python@sha256:35eff340c0acd837b7962f77ee4b8869385dd6fe7d3928375a08f0a3bdd18beb"
91+
command: ["sh", "-c", "'true'"]
92+
93+
# Use the pause container to ensure the Pod goes into a `Running` phase
94+
# but doesn't take up resource on the cluster
95+
containers:
96+
- name: pause
97+
image: gcr.io/google_containers/pause:3.2
98+
resources:
99+
limits:
100+
cpu: 1m
101+
memory: 8Mi
102+
requests:
103+
cpu: 1m
104+
memory: 8Mi

0 commit comments

Comments
 (0)