Skip to content

Commit

Permalink
add ambassador route for katib (kubeflow#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
lluunn authored and k8s-ci-robot committed Jun 6, 2018
1 parent d248d72 commit dee2528
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
14 changes: 14 additions & 0 deletions kubeflow/katib/modeldb.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@
},
name: "modeldb-frontend",
namespace: namespace,
annotations: {
"getambassador.io/config":
std.join("\n", [
"---",
"apiVersion: ambassador/v0",
"kind: Mapping",
"name: modeldb-mapping",
"prefix: /modeldb/",
"rewrite: /",
"method: GET",
"service: " + "modeldb-frontend." + namespace + ":3000",
]),
}, //annotations

},
spec: {
ports: [
Expand Down
8 changes: 5 additions & 3 deletions kubeflow/katib/prototypes/all.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ local suggestion = import "kubeflow/katib/suggestion.libsonnet";

local namespace = env.namespace;

std.prune(k.core.v1.list.new(vizier.all(params, namespace)))
+ std.prune(k.core.v1.list.new(modeldb.all(params, namespace)))
+ std.prune(k.core.v1.list.new(suggestion.all(params, namespace)))
std.prune(
k.core.v1.list.new(vizier.all(params, namespace))
+ k.core.v1.list.new(suggestion.all(params, namespace))
+ k.core.v1.list.new(modeldb.all(params, namespace))
)

0 comments on commit dee2528

Please sign in to comment.