Integrate Rok with Kubeflow Dashboard

This section will guide you through integrating Rok with the Kubeflow dashboard, so that you can visit Rok from the Snapshots tab in the Kubeflow UI.

Choose one of the following options to integrate Rok with the Kubeflow dashboard:

Option 1: Integrate Rok with Kubeflow Dashboard Automatically (preferred)

Integrate Rok with the Kubeflow dashboard by following the on-screen instructions on the rok-deploy user interface.

If rok-deploy is not already running, start it with:

root@rok-tools:~# rok-deploy --run-from kubeflow-rok
../../_images/kubeflow-rok.png

Proceed to the Summary section.

Option 2: Integrate Rok with Kubeflow Dashboard Manually

If you want to integrate Rok with the Kubeflow dashboard, follow the instructions below.

Procedure

  1. Go to your GitOps repository, inside your rok-tools management environment:

    root@rok-tools:~# cd ~/ops/deployments
  2. Edit the rok/rok-cluster/overlays/deploy/kustomization.yaml and enable the kf-configvars.yaml patch by uncommenting the corresponding line. The final result will look like this:

    patches: - path: patches/storage.yaml - path: patches/retention.yaml - path: patches/configvars.yaml - path: patches/image-pull-secrets.yaml - path: patches/kf-configvars.yaml
  3. Save your state:

    root@rok-tools:~/ops/deployments# rok-j2 deploy/env.kubeflow-rok.j2 \ > -o deploy/env.kubeflow-rok
  4. Commit your changes:

    root@rok-tools:~/ops/deployments# git commit -am "Integrate Rok with Kubeflow Dashboard"
  5. Reapply the Rok cluster overlay:

    root@rok-tools:~/ops/deployments# rok-deploy --apply rok/rok-cluster/overlays/deploy
  6. Mark your progress:

    root@rok-tools:~/ops/deployments# export DATE=$(date -u "+%Y-%m-%dT%H.%M.%SZ")
    root@rok-tools:~/ops/deployments# git tag \ > -a deploy/${DATE?}/release-2.0/kubeflow-rok \ > -m "Integrate Rok with Kubeflow Dashboard"

Verify

  1. Go to your GitOps repository, inside your rok-tools management environment:

    root@rok-tools:~# cd ~/ops/deployments
  2. Restore the required context from previous sections:

    root@rok-tools:~/ops/deployments# source deploy/env.cloudidentity
    root@rok-tools:~/ops/deployments# export ROK_CLUSTER_NAMESPACE
  3. Verify you have enabled the Kubeflow dashboard:

    root@rok-tools:~/ops/deployments# kubectl get rokcluster \ > -n ${ROK_CLUSTER_NAMESPACE?} \ > -o yaml \ > | grep -q 'gw.ui.kubeflow_dashboard_enabled: true' \ > && echo OK || echo FAIL OK

Summary

You have successfully integrated Rok with the Kubeflow dashboard.

What’s Next

The next step is to test your Kubeflow deployment.