-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.yml
51 lines (51 loc) · 1.17 KB
/
template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
kind: Template
apiVersion: v1
metadata:
name: tf-mnist-train
annotations:
description: Template to create a Job to train.
tags: tf-mnist-train
objects:
- kind: Job
apiVersion: batch/v1
metadata:
name: "${APPLICATION_NAME}"
labels:
appTypes: tf-mnist-train
appName: "${APPLICATION_NAME}"
spec:
template:
metadata:
labels:
appTypes: tf-mnist-train
deploymentconfig: "${APPLICATION_NAME}"
appName: "${APPLICATION_NAME}"
spec:
containers:
- env:
- name: STOP_THRESHOLD
value: "${STOP_THRESHOLD}"
- name: EXPORT_DIR
value: "${EXPORT_DIR}"
name: "${APPLICATION_NAME}"
image: "${IMAGESTREAM}"
restartPolicy: Never
parameters:
- name: APPLICATION_NAME
description: The name of the application.
value: tf-mnist-train
from: "[a-zA-Z0-9]{10}"
required: true
- name: IMAGESTREAM
description: tf-mnist-build:latest
value: tf-mnist-build:latest
required: true
- name: STOP_THRESHOLD
description: STOP_THRESHOLD
value: ''
required: true
- name: EXPORT_DIR
description: EXPORT_DIR
value: ''
required: true