trained model on Kubernetes

7/11/2018

We intend to deploy a trained model in production. since we can not keep the same in the code base, we need to upload into the cloud and refer it on runtime.

We are using kubernetes, and I'm relatively new to it. Below is my stepwise understanding on how to solve this.

  1. build a persistent volume with my trained model (size around 30MB)
  2. mount the persistent volume into pod with a single container.
  3. keep this pod running. refer to the model from a python script via pod.

I tried referring documentation pv with no luck. I also tried to move the model to PV via "kubectl cp", with no success.

Any idea on how to resolve this? any helps would be appreciated.

-- Madhu Venkatesh
gensim
kubernetes
machine-learning
nlp
persistent-volumes

0 Answers