GithubHelp home page GithubHelp logo

bridgecrew-perf7 / odh-kfnbc-standalone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jx-mlopslabs/odh-kfnbc-standalone

0.0 0.0 0.0 672 KB

Deploy Kubeflow Notebook Controller in Openshift

Shell 0.03% JavaScript 0.73% Python 16.37% Go 16.01% TypeScript 51.36% CSS 0.20% Makefile 0.90% HTML 9.60% Dockerfile 0.67% SCSS 4.14%

odh-kfnbc-standalone's Introduction

ODH KFNBC Standalone

Deploy Kubeflow Notebook Controller in Openshift.

Fetch KFNBC

Fetch KFNBC components from Kubeflow upstream:

$ git clone [email protected]:kubeflow/kubeflow.git kubeflow-components
$ cd kubeflow-components
$ git filter-repo --subdirectory-filter components

Prune everything but notebook-controller and jupyter components:

$ git filter-repo \
    --path common \
    --path notebook-controller \
    --path crud-web-apps/common \
    --path crud-web-apps/jupyter
$ rm -rf .git

Deploy controller manager

Install the notebooks.kubeflow.org CRD in your cluster:

$ cd kubeflow-components/notebook-controller
$ make install
$ oc get crd notebooks.kubeflow.org
NAME                     CREATED AT
notebooks.kubeflow.org   2022-01-14T11:15:14Z

Deploy the notebook controller manager:

$ make deploy

Verify that notebook controller manager pod is running:

$ oc get pods -l app=notebook-controller -n opendatahub
NAME                                            READY   STATUS    RESTARTS   AGE
notebook-controller-deployment-cd65889c-9jpvb   1/1     Running   0          7s

Deploy JWA (Jupyter Web App)

Deploy the Jupyter web app with the Openshift overlay:

$ cd kubeflow-components/crud-web-apps/jupyter
$ kustomize build manifests/overlays/openshift | oc apply -f -

Verify that Jupyter web app pods are running, and the route is accessible:

$ oc get pods -l app=jupyter-web-app -n opendatahub
NAME                                          READY   STATUS    RESTARTS   AGE
jupyter-web-app-deployment-54b74f4b8b-2hkwp   2/2     Running   0          76s
jupyter-web-app-deployment-54b74f4b8b-6k7lw   2/2     Running   0          102s
jupyter-web-app-deployment-54b74f4b8b-ds8fq   2/2     Running   0          87s

$ oc get route jupyter -n opendatahub
NAME      HOST/PORT
jupyter   jupyter-opendatahub.apps.user.dev.datahub.redhat.com

Spawn a Notebook

Set up the kubeflow-user namespace to allow the operator to instantiate notebooks in it:

$ oc apply -f notebooks/namespace -n kubeflow-user

Allow the openldap-user1 user to create notebooks in the kubeflow-user namespace:

$ oc apply -f notebooks/users/openldap-user1.yaml -n kubeflow-user

Log in into the Jupyter web app interface and create a new notebook with that user:

SciPy Notebook

References

odh-kfnbc-standalone's People

Contributors

samuelvl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.