Add model registry v0.2.19
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
apiVersion: security.istio.io/v1beta1
|
||||
kind: AuthorizationPolicy
|
||||
metadata:
|
||||
name: model-registry-ui
|
||||
labels:
|
||||
app: model-registry-ui
|
||||
spec:
|
||||
action: ALLOW
|
||||
rules:
|
||||
- from:
|
||||
- source:
|
||||
principals:
|
||||
- cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account
|
||||
selector:
|
||||
matchLabels:
|
||||
app: model-registry-ui
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: DestinationRule
|
||||
metadata:
|
||||
name: model-registry-ui
|
||||
labels:
|
||||
app: model-registry-ui
|
||||
spec:
|
||||
host: model-registry-ui-service.kubeflow.svc.cluster.local
|
||||
trafficPolicy:
|
||||
tls:
|
||||
mode: ISTIO_MUTUAL
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../integrated
|
||||
- virtual-service.yaml
|
||||
- destination-rule-ui.yaml
|
||||
- authorization-policy-ui.yaml
|
||||
|
||||
patches:
|
||||
- path: model-registry-ui-service.yaml
|
||||
target:
|
||||
version: v1
|
||||
kind: Service
|
||||
name: model-registry-ui-service
|
||||
|
||||
namespace: kubeflow
|
||||
@@ -0,0 +1,3 @@
|
||||
- op: replace
|
||||
path: /spec/ports/0/port
|
||||
value: 80
|
||||
@@ -0,0 +1,26 @@
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: model-registry-ui
|
||||
labels:
|
||||
app: 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
|
||||
Reference in New Issue
Block a user