Skip to content

Commit 59b3383

Browse files
committed
Fix curl in cron jobs
1 parent 2b24a48 commit 59b3383

File tree

1 file changed

+42
-7
lines changed

1 file changed

+42
-7
lines changed

k8s/cron-jobs.yaml

+42-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: main
18-
image: curlimages/curl:7.88.1
18+
image: curlimages/curl:8.4.0
1919
imagePullPolicy: IfNotPresent
2020
command:
2121
- /bin/sh
@@ -43,6 +43,11 @@ spec:
4343
readOnlyRootFilesystem: true
4444
runAsUser: 10001
4545
restartPolicy: Never
46+
dnsPolicy: None
47+
dnsConfig:
48+
nameservers:
49+
- 1.1.1.1
50+
- 8.8.8.8
4651

4752
---
4853
kind: CronJob
@@ -61,7 +66,7 @@ spec:
6166
spec:
6267
containers:
6368
- name: main
64-
image: curlimages/curl:7.88.1
69+
image: curlimages/curl:8.4.0
6570
imagePullPolicy: IfNotPresent
6671
command:
6772
- /bin/sh
@@ -89,6 +94,11 @@ spec:
8994
readOnlyRootFilesystem: true
9095
runAsUser: 10001
9196
restartPolicy: Never
97+
dnsPolicy: None
98+
dnsConfig:
99+
nameservers:
100+
- 1.1.1.1
101+
- 8.8.8.8
92102

93103
---
94104
kind: CronJob
@@ -107,7 +117,7 @@ spec:
107117
spec:
108118
containers:
109119
- name: main
110-
image: curlimages/curl:7.88.1
120+
image: curlimages/curl:8.4.0
111121
imagePullPolicy: IfNotPresent
112122
command:
113123
- /bin/sh
@@ -135,6 +145,11 @@ spec:
135145
readOnlyRootFilesystem: true
136146
runAsUser: 10001
137147
restartPolicy: Never
148+
dnsPolicy: None
149+
dnsConfig:
150+
nameservers:
151+
- 1.1.1.1
152+
- 8.8.8.8
138153

139154
---
140155
kind: CronJob
@@ -153,7 +168,7 @@ spec:
153168
spec:
154169
containers:
155170
- name: main
156-
image: curlimages/curl:7.88.1
171+
image: curlimages/curl:8.4.0
157172
imagePullPolicy: IfNotPresent
158173
command:
159174
- /bin/sh
@@ -181,6 +196,11 @@ spec:
181196
readOnlyRootFilesystem: true
182197
runAsUser: 10001
183198
restartPolicy: Never
199+
dnsPolicy: None
200+
dnsConfig:
201+
nameservers:
202+
- 1.1.1.1
203+
- 8.8.8.8
184204

185205
---
186206
kind: CronJob
@@ -199,7 +219,7 @@ spec:
199219
spec:
200220
containers:
201221
- name: main
202-
image: curlimages/curl:7.88.1
222+
image: curlimages/curl:8.4.0
203223
imagePullPolicy: IfNotPresent
204224
command:
205225
- /bin/sh
@@ -227,6 +247,11 @@ spec:
227247
readOnlyRootFilesystem: true
228248
runAsUser: 10001
229249
restartPolicy: Never
250+
dnsPolicy: None
251+
dnsConfig:
252+
nameservers:
253+
- 1.1.1.1
254+
- 8.8.8.8
230255

231256
---
232257
kind: CronJob
@@ -245,7 +270,7 @@ spec:
245270
spec:
246271
containers:
247272
- name: main
248-
image: curlimages/curl:7.88.1
273+
image: curlimages/curl:8.4.0
249274
imagePullPolicy: IfNotPresent
250275
command:
251276
- /bin/sh
@@ -273,6 +298,11 @@ spec:
273298
readOnlyRootFilesystem: true
274299
runAsUser: 10001
275300
restartPolicy: Never
301+
dnsPolicy: None
302+
dnsConfig:
303+
nameservers:
304+
- 1.1.1.1
305+
- 8.8.8.8
276306

277307
---
278308
kind: CronJob
@@ -291,7 +321,7 @@ spec:
291321
spec:
292322
containers:
293323
- name: main
294-
image: curlimages/curl:7.88.1
324+
image: curlimages/curl:8.4.0
295325
imagePullPolicy: IfNotPresent
296326
command:
297327
- /bin/sh
@@ -319,3 +349,8 @@ spec:
319349
readOnlyRootFilesystem: true
320350
runAsUser: 10001
321351
restartPolicy: Never
352+
dnsPolicy: None
353+
dnsConfig:
354+
nameservers:
355+
- 1.1.1.1
356+
- 8.8.8.8

0 commit comments

Comments
 (0)