Skip to content

Commit

Permalink
Create networkpolicy kserve-models-web-app.yaml (#2160)
Browse files Browse the repository at this point in the history
* Create kserve-models-web-app.yaml

* Update kustomization.yaml
  • Loading branch information
juliusvonkohout authored Mar 8, 2022
1 parent 0f1e1d4 commit 7bf9759
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions contrib/networkpolicies/kserve-models-web-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: kserve-models-web-app
namespace: kubeflow
spec:
podSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- kserve-models-web-app
ingress:
- from:
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values:
- istio-system
policyTypes:
- Ingress
1 change: 1 addition & 0 deletions contrib/networkpolicies/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resources:
- katib-ui.yaml
- kfserving-models-web-app.yaml
- kfserving.yaml
- kserve-models-web-app.yaml
- metadata-grpc-server.yaml
- minio.yaml
- ml-pipeline-ui.yaml
Expand Down

0 comments on commit 7bf9759

Please sign in to comment.