Tutorial: TensorBoard

Prerequisites:
  • KubeDirector notebook with ML Ops toolkits and Persistent Volume attached
  • An Internet connection is required to download the MNIST dataset for this tutorial. This tutorial is not available for Air Gapped environments.
  • If you have not done so already: Before beginning this tutorial, download the Kubeflow tutorials zip file, which contains sample files for all of the included Kubeflow tutorials.
IMPORTANT If you experience freezing while downloading the MNIST dataset, restart the notebook kernel.

To complete the tutorial:

  1. Log in to the KubeDirector notebook as an LDAP user.
  2. Upload tensorboard.ipynb file using the respective button in the Jupyter notebook.
  3. Open tensorboard.ipynb and run it using Run > Run All Cells in the menu panel.
  4. Open the Kubeflow Dashboard, log in with the LDAP user credentials you used in step 1, and open the Tensorboards page.

    Ensure that the tenant namespace is selected in the Namespace drop-down list.

  5. Create a new TensorBoard:
    1. Select + NEW TENSORBOARD. The New Tensorboard dialog box opens.
      New Tensorboard dialog box
    2. In the Name field, enter a name for the TensorBoard. For example, metrics.
    3. Select the PVC check box.
    4. In the PVC Name drop-down list, select the KubeDirector notebook's persistent volume.
    5. In the Mount Path field, enter the path home/<user>/logs. For example, if the notebook user is dev1, the user mount path is home/dev1/logs.
    6. Select CREATE.
  6. Wait until the TensorBoard becomes available.
    TensorBoards screen with available TensorBoard
  7. Click CONNECT to open the created TensorBoard.
    Opened TensorBoard
  8. (Optional) You can delete the created TensorBoard with the Delete button from the Tensorboards page of the Kubeflow Dashboard.