-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
縣くんがやってくれたもののコピー
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 jupyterhubcomponents/jupyterhub.jsonnetというファイルができる- これが kubernetes の yaml に対応する、manifest の実体(言語が違うだけ...)
- このファイルをいじることで設定を変更できる
ks applykubectl 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
Labels
No labels