Home  >  Q&A  >  body text

A guide to deploying Jupyter notebooks on Kubernetes

<p>This is the requirement:</p> <ol> <li>Mysql, Jupyter Notebook (both should be on Kubernetes cluster)</li> </ol> <p>I need to run a machine learning model using Jupyter Notebook to get data from a Mysql database, and the entire task needs to be scheduled in a Kubernetes cluster environment (just like cron scheduling). </p> <p>I am new to Kubernetes but understand Docker containerization and have built containerized applications before. I implore you, please help me. </p>
P粉710478990P粉710478990418 days ago496

reply all(1)I'll reply

  • P粉976737101

    P粉9767371012023-08-30 12:41:09

    You can schedule resources on Kubernetes using the cornjob function.

    Learn more about cronjobs: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/

    If you plan to run a Docker image of a notebook or code, you can simply create a YAML configuration and use a cronjob to run that Docker image as a scheduled task on Kubernetes.

    I haven't used Jupyter notebook, so not sure how it works.

    To run MySQL on Kubernetes, you can configure the YAML file in the same way and apply the changes in the K8s cluster, and then your container will be deployed to K8s.

    Read more here: https://kubernetes.io/docs/tasks/run-application/run-single-instance-stateful-application/

    reply
    0
  • Cancelreply