Created
August 7, 2017 16:55
-
-
Save unya/f3ac569113156b4305ca43822575590c to your computer and use it in GitHub Desktop.
pre-pull images on kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: image-pull | |
spec: | |
template: | |
metadata: | |
name: image-pull | |
spec: | |
volumes: | |
- name: docker | |
hostPath: /var/run/ | |
containers: | |
- name: image-pull | |
image: docker | |
command: ["docker", "pull","my-custom-image"] | |
volumeMounts: | |
- name: docker | |
path: /var/run | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment