Skip to content

Commit

Permalink
Pipeline UI ISTIO manifests (kubeflow#43)
Browse files Browse the repository at this point in the history
* updates

* link

* updates

* add params

* add resource
  • Loading branch information
gabrielwen authored and k8s-ci-robot committed May 6, 2019
1 parent bb185e6 commit a3de5b8
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pipeline/pipelines-ui/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ resources:
- role.yaml
- sa.yaml
- service.yaml
- virtual-service.yaml

configMapGenerator:
- name: ui-parameters
env: params.env

images:
- name: gcr.io/ml-pipeline/frontend
Expand All @@ -17,6 +22,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
- name: ui-clusterDomain
objref:
kind: ConfigMap
name: ui-parameters
version: v1
fieldref:
fieldpath: data.uiClusterDomain

configurations:
- params.yaml
1 change: 1 addition & 0 deletions pipeline/pipelines-ui/base/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uiClusterDomain=cluster.local
2 changes: 2 additions & 0 deletions pipeline/pipelines-ui/base/params.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
- path: spec/http/route/destination/host
kind: VirtualService
21 changes: 21 additions & 0 deletions pipeline/pipelines-ui/base/virtual-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: ml-pipeline-ui
spec:
gateways:
- kubeflow-gateway
hosts:
- '*'
http:
- match:
- uri:
prefix: /pipeline
rewrite:
uri: /pipeline
route:
- destination:
host: ml-pipeline-ui.$(ui-namespace).svc.$(ui-clusterDomain)
port:
number: 80
timeout: 300s
11 changes: 11 additions & 0 deletions pipeline/pipelines-viewer/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ resources:
- deployment.yaml
- sa.yaml
- service.yaml
- virtual-service.yaml
images:
- name: gcr.io/ml-pipeline/viewer-crd-controller
newTag: '0.1.14'
configMapGenerator:
- name: viewer-parameters
env: params.env
vars:
- name: viewer-namespace
objref:
Expand All @@ -18,5 +22,12 @@ vars:
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
- name: viewer-clusterDomain
objref:
kind: ConfigMap
name: viewer-parameters
version: v1
fieldref:
fieldpath: data.viewerClusterDomain
configurations:
- params.yaml
1 change: 1 addition & 0 deletions pipeline/pipelines-viewer/base/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
viewerClusterDomain=cluster.local
2 changes: 2 additions & 0 deletions pipeline/pipelines-viewer/base/params.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
- path: spec/http/route/destination/host
kind: VirtualService
21 changes: 21 additions & 0 deletions pipeline/pipelines-viewer/base/virtual-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: ml-pipeline-tensorboard-ui
spec:
gateways:
- kubeflow-gateway
hosts:
- '*'
http:
- match:
- uri:
prefix: /data
rewrite:
uri: /data
route:
- destination:
host: ml-pipeline-ui.$(viewer-namespace).svc.$(viewer-clusterDomain)
port:
number: 80
timeout: 300s

0 comments on commit a3de5b8

Please sign in to comment.