apiVersion: batch/v1
kind: Job
metadata:
name: pre-pull-browser-images
spec:
ttlSecondsAfterFinished: 10
parallelism: 2
template:
spec:
containers:
- name: chrome-image
imagePullPolicy: IfNotPresent
image: docker
command:
- docker
- pull
- selenoid/chrome:91.0
volumeMounts:
- name: docker
mountPath: /var/run
- name: firefox-image
imagePullPolicy: IfNotPresent
image: docker
command:
- docker
- pull
- selenoid/firefox:88.0
volumeMounts:
- name: docker
mountPath: /var/run
volumes:
- name: docker
hostPath:
path: /var/run
restartPolicy: Never
terminationGracePeriodSeconds: 0
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.