tensorflow-notebook

by joaquinito2051

Helm chartv0.1.2App 1.6.0

A Helm chart for tensorflow notebook and tensorboard

About this chart

TensorFlow Notebook Helm Chart

TensorFlow is an open source software library for numerical computation using data flow graphs, and tensorboard is the tool visualizing TensorFlow programs. Using Jupyter notebook to get into TensorFlow and develop models is the great way for data scientist. With these three tools you are able to start your machine learning work in two minutes.

  • https://www.tensorflow.org
  • https://www.tensorflow.org/programmers_guide/summaries_and_tensorboard
  • http://jupyter.org/

Prerequisites

  • Kubernetes cluster v1.8+

Chart Details

This chart will deploy the followings:

  • Jupyter Notebook with TensorFlow
  • Tensorboard

Installing the Chart

  • To install the chart with the release name notebook:

    $ helm install --name notebook <helm-repo>/tensorflow-notebook
    

    $ helm install --name notebook stable/tensorflow-notebook

  • To install with custom values via file :

    $ helm install  --values values.yaml  --name notebook  <helm-repo>/tensorflow-notebook
    

    $ helm install --values values.yaml --name notebook stable/tensorflow-notebook Below is an example of the custom value file values.yaml with GPU support.

    jupyter:
      image:
        repository: tensorflow/tensorflow
        tag: 1.6.0-devel-gpu
        pullPolicy: IfNotPresent
      password: tensorflow
      resources:
        limits:
          nvidia.com/gpu: 1
      requests:
          nvidia.com/gpu: 1
    tensorboard: 
      image:   
        repository: tensorflow/tensorflow
        tag: 1.6.0-devel
        pullPolicy: IfNotPresent
    service:
      type: LoadBalancer
    

Run TensorFlow Example tensorboard_basic.ipynb

Notice: you should set the log_path /output/training_logs

Check the TensorBoard

Uninstalling the Chart

  • To uninstall/delete the notebook deployment:

    $ helm delete notebook
    

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Service Tensorflow Development chart and their default values.

ParameterDescriptionDefault
jupyter.image.repositoryTensorFlow Development image repositorytensorflow/tensorflow
jupyter.image.tagTensorFlow Development image tag1.5.0-devel-gpu
jupyter.passwordThe password to access jupytermytest
jupyter.image.pullPolicyimage pullPolicy for the jupyterIfNotPresent
tensorboard.image.repositoryTensorFlow Development image repositorytensorflow/tensorflow
tensorboard.image.tagTensorFlow Development image tag1.5.0-devel-gpu
tensorboard.image.pullPolicyimage pullPolicy for the tensorboardIfNotPresent
resourcesSet the resource to be allocated and allowed for the Pods{}
service.typeservice typeLoadBalancer

Deploy tensorflow-notebook with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tensorflow-notebook on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttensorflow-notebook is pinned at v0.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply