Skip to content

kubeflow, ksonnet #73

@awakia

Description

@awakia

縣くんがやってくれたもののコピー

Why

Kubeflow setup instructions.

What

Mostly followed the instructions written in https://codelabs.developers.google.com/codelabs/kubeflow-introduction/index.html.

  • Install ksonnet.
  • ks init ksonnet-kubeflow
    • ksonnet application の作成 & 初期化
  • ks registry add kubeflow github.com/kubeflow/kubeflow/tree/v0.3.0/kubeflow
    • kubeflow の提供する ksonnet library を install 可能な状態にする
    • apt-add-repository みたいなもの?
  • ks pkg install kubeflow/core@v0.3.0
    • kubeflow/core という component を使える状態にする
    • vendor/kubeflow/core@... というファイルができる
  • ks prototype list
    • 今使える prototype 一覧が見られる。ここから選んで instantiate する。
  • ks generate jupyterhub jupyterhub
    • components/jupyterhub.jsonnet というファイルができる
    • これが kubernetes の yaml に対応する、manifest の実体(言語が違うだけ...)
    • このファイルをいじることで設定を変更できる
  • ks apply
    • kubectl apply に相当する操作

Currently, the kubeflow cluster is deployed on Kubernetes Engine in Wantedly QA project.
CPU/GPU autoscaling is enabled.

You can see the UI of Kubeflow with a following command: kubectl port-forward $(kubectl get pods --selector=service=ambassador -o jsonpath='{.items[0].metadata.name}') 8080:80 & open http://localhost:8080 .

2018/10/18 時点では

  • ambassador

    • Kubeflow 全体の API Gateway
    • ここにつなぐと central dashboard などが見られる
  • centraldashboard

    • Kubeflow 全体のダッシュボード
    • (現状は各 components へのリンク集)
  • jupyterhub

    • docker image を指定して notebook を spawn できる
    • 1 notebook = 1 pod
    • 一応ユーザの概念が存在する(Github integration とかもあるようにみえるが、今はただのパスワード認証)
      • 最初に適当なユーザ名 + パスワードを入力すると、ユーザが作られる
  • seldon

    • モデルを serving するための component
    • (詳しくはまだ調べていないが、A/B や multi-armed bandit のための routing も提供しているらしい)
  • tf-job

    • tensorflow の学習 job

あたりがデプロイされています。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions