Skip to content

Commit

Permalink
Update manifests (kubeflow#246)
Browse files Browse the repository at this point in the history
* change namespace katib -> kubeflow

Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>

* change namespace of tfevent-mc
  • Loading branch information
YujiOshima authored and k8s-ci-robot committed Nov 19, 2018
1 parent f7aff4a commit b6f8e07
Show file tree
Hide file tree
Showing 45 changed files with 74 additions and 237 deletions.
34 changes: 17 additions & 17 deletions examples/MinikubeDemo.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ Don't worry if the `vizier-core` get an error.
It will be recovered after DB will be prepared.
Wait until all components will be Running status.

Then, start port-forward for katib services `6789 -> manager` and `3000 -> UI`.
Then, start port-forward for katib services `6789 -> manager` and `8000 -> UI`.

kubectl v1.10~
```
$ kubectl -n katib port-forward svc/vizier-core 6789:6789 &
$ kubectl -n katib port-forward svc/katib-ui 3000:3000 &
$ kubectl -n kubeflow port-forward svc/vizier-core 6789:6789 &
$ kubectl -n kubeflow port-forward svc/katib-ui 8000:80 &
```

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 katib-ui | sed -e "s@pods\/@@") 3000:3000 &
& kubectl -n kubeflow port-forward $(kubectl -n kubeflow get pod -o=name | grep vizier-core | sed -e "s@pods\/@@") 6789:6789 &
& kubectl -n kubeflow port-forward $(kubectl -n kubeflow get pod -o=name | grep katib-ui | sed -e "s@pods\/@@") 8000:80 &
```

## Create Study
Expand All @@ -49,17 +49,17 @@ In this demo, 3 hyper parameters
are randomly generated.

```
$ kubectl -n katib get studyjob
$ kubectl -n kubeflow get studyjob
NAME AGE
random-example 2m
```

Check the study status.

```
$ kubectl -n katib describe studyjobs random-example
$ kubectl -n kubeflow 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
Expand All @@ -69,7 +69,7 @@ Metadata:
Creation Timestamp: 2018-08-15T01:29:13Z
Generation: 0
Resource Version: 173289
Self Link: /apis/kubeflow.org/v1alpha1/namespaces/katib/studyjobs/random-example
Self Link: /apis/kubeflow.org/v1alpha1/namespaces/kubeflow/studyjobs/random-example
UID: 9e136400-a02a-11e8-b88c-42010af0008b
Spec:
Study Spec:
Expand Down Expand Up @@ -135,7 +135,7 @@ Events: <none>
```

When the Spec.Status.State become `Completed`, the study is completed.
You can look the result on `http://127.0.0.1:3000/katib`.
You can look the result on `http://127.0.0.1:8000/katib`.

### Use ConfigMap for Worker Template
In Random example, the template for workers is defined in StudyJob manifest.
Expand All @@ -162,7 +162,7 @@ kubectl apply -f random-example.yaml

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

### Using GPU demo
Expand All @@ -178,16 +178,16 @@ Set "/worker-template/gpuWorkerTemplate.yaml at `workerTemplatePath` field and s
You can apply it same as other examples.
```
$ kubectl apply -f gpu-example.yaml
$ kubectl -n katib get studyjob
$ kubectl -n kubeflow get studyjob
NAME AGE
gpu-example 1m
random-example 17m
$ kubectl -n katib describe studyjob gpu-example
$ kubectl -n kubeflow describe studyjob gpu-example
Name: gpu-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":"gpu-example","n...
API Version: kubeflow.org/v1alpha1
Expand All @@ -197,7 +197,7 @@ Metadata:
Creation Timestamp: 2018-08-15T01:48:12Z
Generation: 0
Resource Version: 175002
Self Link: /apis/kubeflow.org/v1alpha1/namespaces/katib/studyjobs/gpu-example
Self Link: /apis/kubeflow.org/v1alpha1/namespaces/kubeflow/studyjobs/gpu-example
UID: 44afac4c-a02d-11e8-b88c-42010af0008b
Spec:
Study Spec:
Expand Down Expand Up @@ -244,9 +244,9 @@ Status:
Check the GPU configuration works correctly.

```
$ kubectl -n katib describe pod g07cba174ada521e-88wpn
$ kubectl -n kubeflow describe pod g07cba174ada521e-88wpn
Name: g07cba174ada521e-88wpn
Namespace: katib
Namespace: kubeflow
Node: <none>
Labels: controller-uid=44bfb99f-a02d-11e8-b88c-42010af0008b
job-name=g07cba174ada521e
Expand Down
2 changes: 1 addition & 1 deletion examples/gpu-example.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
namespace: katib
namespace: kubeflow
labels:
controller-tools.k8s.io: "1.0"
name: gpu-example
Expand Down
2 changes: 1 addition & 1 deletion examples/grid-example.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
namespace: katib
namespace: kubeflow
labels:
controller-tools.k8s.io: "1.0"
name: grid-example
Expand Down
2 changes: 1 addition & 1 deletion examples/hypb-example.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
namespace: katib
namespace: kubeflow
labels:
controller-tools.k8s.io: "1.0"
name: hypb-example
Expand Down
4 changes: 2 additions & 2 deletions examples/random-example.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
namespace: katib
namespace: kubeflow
labels:
controller-tools.k8s.io: "1.0"
name: random-example
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
kind: Job
metadata:
name: {{.WorkerID}}
namespace: katib
namespace: kubeflow
spec:
template:
spec:
Expand Down
6 changes: 3 additions & 3 deletions examples/tf-event_test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
namespace: katib
namespace: kubeflow
labels:
controller-tools.k8s.io: "1.0"
name: random-example-goal-test
Expand Down Expand Up @@ -34,7 +34,7 @@ spec:
kind: Job
metadata:
name: {{.WorkerID}}
namespace: katib
namespace: kubeflow
spec:
template:
spec:
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
kind: CronJob
metadata:
name: {{.WorkerID}}
namespace: katib
namespace: kubeflow
spec:
schedule: "*/1 * * * *"
successfulJobsHistoryLimit: 0
Expand Down
2 changes: 1 addition & 1 deletion examples/tfevent-volume/tfevent-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tfevent-volume
namespace: katib
namespace: kubeflow
labels:
type: local
app: tfjob
Expand Down
Empty file removed examples/vizier-db-pv.yaml
Empty file.
6 changes: 3 additions & 3 deletions examples/workerConfigMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: worker-template
namespace: katib
namespace: kubeflow
data:
cpuWorkerTemplate.yaml : |-
apiVersion: batch/v1
kind: Job
metadata:
name: {{.WorkerID}}
namespace: katib
namespace: kubeflow
spec:
template:
spec:
Expand All @@ -31,7 +31,7 @@ data:
kind: Job
metadata:
name: {{.WorkerID}}
namespace: katib
namespace: kubeflow
spec:
template:
spec:
Expand Down
2 changes: 1 addition & 1 deletion manifests/0-namespace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: katib
name: kubeflow
32 changes: 0 additions & 32 deletions manifests/modeldb/backend/deployment.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions manifests/modeldb/backend/service.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions manifests/modeldb/db/deployment.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions manifests/modeldb/db/service.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions manifests/modeldb/frontend/deployment.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions manifests/modeldb/frontend/ingress.yaml_

This file was deleted.

17 changes: 0 additions & 17 deletions manifests/modeldb/frontend/service.yaml

This file was deleted.

Loading

0 comments on commit b6f8e07

Please sign in to comment.