A guide to deploying Jupyter notebooks on Kubernetes
P粉710478990
P粉710478990 2023-08-29 18:05:19
0
1
461

This is the requirement:

  1. Mysql, Jupyter Notebook (both should be on Kubernetes cluster)

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).

I am new to Kubernetes but understand Docker containerization and have built containerized applications before. I implore you, please help me.

P粉710478990
P粉710478990

reply all (1)
P粉976737101

You can schedule resources on Kubernetes using thecornjobfunction.

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 usedJupyternotebook, 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/

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!