Skip to content

Commit

Permalink
update test and doc
Browse files Browse the repository at this point in the history
Signed-off-by: YujiOshima <[email protected]>
  • Loading branch information
YujiOshima committed Oct 15, 2018
1 parent 58af587 commit 9492a36
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 15 deletions.
8 changes: 4 additions & 4 deletions examples/MinikubeDemo.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ Then, start port-forward for katib services `6789 -> manager` and `3000 -> UI`.
kubectl v1.10~
```
$ kubectl -n katib port-forward svc/vizier-core 6789:6789 &
$ kubectl -n katib port-forward svc/modeldb-frontend 3000:3000 &
$ kubectl -n katib port-forward svc/katib-ui 3000:3000 &
```

kubectl ~v1.9

```
& kubectl -n katib port-forward $(kubectl -n katib get pod -o=name | grep vizier-core | sed -e "s@pods\/@@") 6789:6789 &
& kubectl -n katib port-forward $(kubectl -n katib get pod -o=name | grep modeldb-frontend | sed -e "s@pods\/@@") 3000:3000 &
& kubectl -n katib port-forward $(kubectl -n katib get pod -o=name | grep katib-ui | sed -e "s@pods\/@@") 3000:3000 &
```

## Create Study
Expand Down Expand Up @@ -161,7 +161,7 @@ kubectl apply -f random-example.yaml
```

## UI
You can check your Model with Web UI.
You can check your study results with Web UI.
Acsess to `http://127.0.0.1:3000/katib`
The Results will be saved automatically.

Expand Down Expand Up @@ -356,7 +356,7 @@ configs:
- adam
- ftrl
```
You can easy to explore the model on ModelDB.
You can easy to explore the model on KatibUI.

```
katib-cli push md -f mnist-models.yaml
Expand Down
32 changes: 32 additions & 0 deletions manifests/vizier/ui/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: katib-ui
namespace: katib
labels:
app: vizier
component: ui
spec:
replicas: 1
template:
metadata:
name: katib-ui
labels:
app: vizier
component: ui
spec:
containers:
- name: katib-ui
image: katib/katib-ui
command:
- './katib-ui'
ports:
- name: ui
containerPort: 80
# resources:
# requests:
# cpu: 500m
# memory: 500M
# limits:
# cpu: 500m
# memory: 500M
17 changes: 17 additions & 0 deletions manifests/vizier/ui/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: katib-ui
namespace: katib
labels:
app: vizier
component: ui
spec:
type: ClusterIP
ports:
- port: 80
protocol: TCP
name: ui
selector:
app: vizier
component: ui
4 changes: 1 addition & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
cd ${SCRIPT_ROOT}
kubectl apply -f manifests/0-namespace.yaml
kubectl apply -f manifests/pv
kubectl apply -f manifests/modeldb/db
kubectl apply -f manifests/modeldb/backend
kubectl apply -f manifests/modeldb/frontend
kubectl apply -f manifests/vizier/db
kubectl apply -f manifests/vizier/core
kubectl apply -f manifests/vizier/core-rest
kubectl apply -f manifests/vizier/ui
kubectl apply -f manifests/vizier/suggestion/random
kubectl apply -f manifests/vizier/suggestion/grid
kubectl apply -f manifests/vizier/suggestion/hyperband
Expand Down
5 changes: 2 additions & 3 deletions test/scripts/build-modeldb.sh → test/scripts/build-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ mkdir -p ${GO_DIR}
cp -r cmd ${GO_DIR}/cmd
cp -r pkg ${GO_DIR}/pkg
cp -r vendor ${GO_DIR}/vendor
cp -r modeldb ${GO_DIR}/modeldb

cd ${GO_DIR}
cp modeldb/Dockerfile .
gcloud container builds submit . --tag=${REGISTRY}/${REPO_NAME}/katib-frontend:${VERSION} --project=${PROJECT}
cp cmd/ui/Dockerfile .
gcloud container builds submit . --tag=${REGISTRY}/${REPO_NAME}/katib-ui:${VERSION} --project=${PROJECT}
10 changes: 5 additions & 5 deletions test/workflows/components/workflows.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@
template: "build-earlystopping-median",
},
{
name: "build-modeldb",
template: "build-modeldb",
name: "build-ui",
template: "build-ui",
},
{
name: "create-pr-symlink",
Expand Down Expand Up @@ -364,9 +364,9 @@
$.parts(namespace, name, overrides).e2e(prow_env, bucket).buildTemplate("build-earlystopping-median", testWorkerImage, [
"test/scripts/build-earlystopping-median.sh",
]), // build-earlystopping-median
$.parts(namespace, name, overrides).e2e(prow_env, bucket).buildTemplate("build-modeldb", testWorkerImage, [
"test/scripts/build-modeldb.sh",
]), // build-modeldb
$.parts(namespace, name, overrides).e2e(prow_env, bucket).buildTemplate("build-ui", testWorkerImage, [
"test/scripts/build-ui.sh",
]), // build-ui
$.parts(namespace, name, overrides).e2e(prow_env, bucket).buildTemplate("unit-test", testWorkerImage, [
"test/scripts/unit-test.sh",
]), // unit test
Expand Down

0 comments on commit 9492a36

Please sign in to comment.