Skip to content

Commit

Permalink
add Model Registry networkpolicy (#2724)
Browse files Browse the repository at this point in the history
* add Model Registry networkpolicy

Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>

* implement review feedback

Signed-off-by: tarilabs <matteo.mortari@gmail.com>

* implement code review feedback

Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>

---------

Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
Signed-off-by: tarilabs <matteo.mortari@gmail.com>
  • Loading branch information
tarilabs authored Jun 3, 2024
1 parent ecb199b commit 0805068
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/networkpolicies/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ resources:
- minio.yaml
- ml-pipeline-ui.yaml
- ml-pipeline.yaml
- model-registry.yaml
- poddefaults.yaml
- pvcviewer-webhook.yaml
- seldon.yaml
Expand Down
33 changes: 33 additions & 0 deletions common/networkpolicies/base/model-registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: model-registry
namespace: kubeflow
spec:
podSelector:
matchExpressions:
- key: component
operator: In
values:
- model-registry-server
ingress:
- from:
- namespaceSelector:
matchExpressions:
- key: app.kubernetes.io/part-of
operator: In
values:
- kubeflow-profile
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values:
- istio-system
ports:
- protocol: TCP
port: 8080
- protocol: TCP
port: 9090
policyTypes:
- Ingress

0 comments on commit 0805068

Please sign in to comment.