-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Model Registry networkpolicy (#2724)
* 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
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -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 |