Skip to content

Instantly share code, notes, and snippets.

@sebgoa
Created May 2, 2017 11:25
Show Gist options
  • Save sebgoa/d2138b5d6044d5a71c3a348ef6f705b6 to your computer and use it in GitHub Desktop.
Save sebgoa/d2138b5d6044d5a71c3a348ef6f705b6 to your computer and use it in GitHub Desktop.
Seed job to load inception model
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: seed
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
---
apiVersion: batch/v1
kind: Job
metadata:
name: seed-inception
spec:
template:
metadata:
name: seed-inception
spec:
containers:
- name: seed
image: bitnami/minideb-extras:jessie
command: ["/bin/sh"]
args: ["-c", "curl -o /seed/inception-v3-2016-03-01.tar.gz http://download.tensorflow.org/models/image/imagenet/inception-v3-2016-03-01.tar.gz && cd /seed/ && tar -xzf inception-v3-2016-03-01.tar.gz && rm inception-v3-2016-03-01.tar.gz"]
volumeMounts:
- name: seed
mountPath: /seed
restartPolicy: Never
volumes:
- name: seed
persistentVolumeClaim:
claimName: seed
Contact GitHub API Training Shop Blog About
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment