-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Istio overlay for UI integration with Central Dashboard
Signed-off-by: Griffin-Sullivan <[email protected]>
- Loading branch information
1 parent
c811819
commit 9406ca9
Showing
19 changed files
with
159 additions
and
93 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ spec: | |
ports: | ||
- protocol: TCP | ||
port: 4000 | ||
targetPort: 4000 | ||
targetPort: 4000 | ||
name: http |
5 changes: 5 additions & 0 deletions
5
clients/ui/manifests/bff/base/model-registry-service-account.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: model-registry-bff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: security.istio.io/v1beta1 | ||
kind: AuthorizationPolicy | ||
metadata: | ||
name: model-registry-bff | ||
namespace: kubeflow | ||
spec: | ||
action: ALLOW | ||
rules: | ||
- from: | ||
- source: | ||
principals: | ||
- cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account | ||
selector: | ||
matchLabels: | ||
app: model-registry-bff |
11 changes: 11 additions & 0 deletions
11
clients/ui/manifests/bff/overlays/istio/dest-rule-bff.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: model-registry-bff | ||
namespace: kubeflow | ||
spec: | ||
host: model-registry-bff-service.kubeflow.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
10 changes: 10 additions & 0 deletions
10
clients/ui/manifests/bff/overlays/istio/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
- auth-pol-bff.yaml | ||
- dest-rule-bff.yaml | ||
namespace: kubeflow | ||
commonLabels: | ||
app: model-registry-bff | ||
kustomize.component: model-registry-bff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- model-registry-ui-service.yaml | ||
- model-registry-ui-deployment.yaml | ||
- model-registry-service-account.yaml | ||
|
||
images: | ||
- name: model-registry-ui-image | ||
newName: docker.io/kubeflow/model-registry-ui | ||
newTag: latest |
3 changes: 2 additions & 1 deletion
3
.../base/model-registry-service-account.yaml → .../base/model-registry-service-account.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: model-registry-bff | ||
name: model-registry-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ spec: | |
app: model-registry-ui | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
port: 80 | ||
targetPort: 8080 | ||
name: http |
16 changes: 16 additions & 0 deletions
16
clients/ui/manifests/frontend/overlays/istio/authorization-policy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: security.istio.io/v1beta1 | ||
kind: AuthorizationPolicy | ||
metadata: | ||
name: model-registry-ui | ||
namespace: kubeflow | ||
spec: | ||
action: ALLOW | ||
rules: | ||
- from: | ||
- source: | ||
principals: | ||
- cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account | ||
selector: | ||
matchLabels: | ||
app: model-registry-ui |
11 changes: 11 additions & 0 deletions
11
clients/ui/manifests/frontend/overlays/istio/destination-rule.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: model-registry-ui | ||
namespace: kubeflow | ||
spec: | ||
host: model-registry-ui-service.kubeflow.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
11 changes: 11 additions & 0 deletions
11
clients/ui/manifests/frontend/overlays/istio/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
- virtual-service.yaml | ||
- authorization-policy.yaml | ||
- destination-rule.yaml | ||
namespace: kubeflow | ||
commonLabels: | ||
app: model-registry-ui | ||
kustomize.component: model-registry-ui |
25 changes: 25 additions & 0 deletions
25
clients/ui/manifests/frontend/overlays/istio/virtual-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: model-registry-ui | ||
spec: | ||
gateways: | ||
- kubeflow-gateway | ||
hosts: | ||
- '*' | ||
http: | ||
- headers: | ||
request: | ||
add: | ||
x-forwarded-prefix: /model-registry | ||
match: | ||
- uri: | ||
prefix: /model-registry/ | ||
rewrite: | ||
uri: / | ||
route: | ||
- destination: | ||
host: model-registry-ui-service.kubeflow.svc.cluster.local | ||
port: | ||
number: 80 |
22 changes: 22 additions & 0 deletions
22
clients/ui/manifests/user-rbac/kubeflow-dashboard-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: service-access-cluster-role | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["services"] | ||
verbs: ["get", "list"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: service-access-cluster-binding | ||
namespace: kubeflow | ||
subjects: | ||
- kind: User | ||
name: [email protected] | ||
apiGroup: rbac.authorization.k8s.io | ||
roleRef: | ||
kind: ClusterRole | ||
name: service-access-cluster-role | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters