https://prefect.io logo
Title
r

Rafal

08/03/2020, 12:45 PM
Hello, I am looking into Kubernetes Tasks, and even though there is a
CreateNamespacedDeployment
task I am not sure, if it could start server based on docker image. Any suggestions?
j

josh

08/03/2020, 1:49 PM
Hi @Rafal do you think you could elaborate on what you are attempting to accomplish?
r

Rafal

08/03/2020, 1:55 PM
Sure Josh. I would like to deploy R-studio with cloned repo and specific dataset in one pipeline
j

josh

08/03/2020, 2:00 PM
Ah I see. That task takes any dictionary representation of a Kubernetes deployment yaml spec in the
body
argument so I guess however you would normally spin up rstudio on kubernetes is all you would need to pass to deploy it
r

Rafal

08/03/2020, 3:02 PM
Thanks, @josh I will try that! Do you plan to simplify this? Another way is to use directly python Kubernetes client and pass deployment yaml file there
j

josh

08/03/2020, 3:03 PM