From 9f89bf56cadf2bcf7533c5b8249dfdd7e7a2c8c4 Mon Sep 17 00:00:00 2001 From: Clive Cox Date: Sun, 26 Mar 2017 21:03:55 +0100 Subject: [PATCH] add mf clusters kube conf --- .../matrix-factorization-clusters.json.in | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 kubernetes/conf/models/matrix-factorization-clusters.json.in diff --git a/kubernetes/conf/models/matrix-factorization-clusters.json.in b/kubernetes/conf/models/matrix-factorization-clusters.json.in new file mode 100644 index 00000000..36cc1c40 --- /dev/null +++ b/kubernetes/conf/models/matrix-factorization-clusters.json.in @@ -0,0 +1,36 @@ +{ + "kind": "Job", + "apiVersion": "batch/v1", + "metadata": { + "name": "matrix-factorization-clusters" + }, + "spec": { + "template": { + "metadata": { + "name": "matrix-factorization-clusters" + }, + "spec": { + "volumes": [ + { + "name": "data-volume", + "hostPath": {"path": "/seldon-data"} + } + ], + "containers": [ + { + "name": "matrix-factorization-clusters", + "image": "seldonio/seldon-control:2.2_v1", + "command": ["luigi","--module","seldon.luigi.spark","SeldonMatrixFactorizationClusters","--local-schedule","--client","%CLIENT%","--startDay","%DAY%"], + "volumeMounts": [ + { + "name": "data-volume", + "mountPath": "/seldon-data" + } + ] + } + ], + "restartPolicy": "Never" + } + } + } +}