提交 965601f9 编写于 作者: O oshima 提交者: k8s-ci-robot

update katib doc use katib-ui (#295)

Signed-off-by: NYujiOshima <yuji.oshima0x3fd@gmail.com>
上级 69bd72ee
......@@ -9,30 +9,17 @@ toc = true
weight = 5
+++
## Deploying Katib
[Katib](https://github.com/kubeflow/katib) is a hyperparameter tuning framework, inspired by
[Google Vizier](https://static.googleusercontent.com/media/research.google.com/ja//pubs/archive/bcb15507f4b52991a0783013df4222240e942381.pdf).
To deploy katib,
```shell
ks pkg install kubeflow/katib@master
ks generate katib katib
ks apply ${ENV} -c katib
```
## Using Katib
Create namespace `katib` as the service launches jobs in this namespace.
Currently we are using port-forwarding to access the katib services.
kubernetes version 1.9~
```
kubectl create namespace katib
kubectl -n kubeflow port-forward svc/katib-ui 8000:80
```
Currently we are using port-forwarding to access the katib services.
~1.8
```
kubectl get pod -n kubeflow # Find your vizier-core and modedb-frontend pods
kubectl port-forward -n kubeflow [vizier-core pod] 6789:6789 &
kubectl port-forward -n kubeflow [modeldb-frontend pod] 3000:3000 &
kubectl get pod -n kubeflow # Find your katib-ui pods
kubectl port-forward -n kubeflow [katib-ui pod] 8000:80 &
```
## Creating a Study Job
You can create Study Job for Katib by defining a StudyJob config file.
......@@ -63,7 +50,7 @@ Check the study status.
```
$ kubectl -n katib describe studyjobs random-example
Name: random-example
Namespace: katib
Namespace: kubeflow
Labels: controller-tools.k8s.io=1.0
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"kubeflow.org/v1alpha1","kind":"StudyJob","metadata":{"annotations":{},"labels":{"controller-tools.k8s.io":"1.0"},"name":"random-example"...
API Version: kubeflow.org/v1alpha1
......@@ -140,4 +127,4 @@ Events: <none>
It should start a study and run two jobs with different parameters.
Go to http://localhost:3000/katib to see the result.
Go to http://localhost:8000/katib to see the result.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册