Skip to content

Commit

Permalink
Add kserve networkpolicy (kubeflow#2189)
Browse files Browse the repository at this point in the history
* Create kserve

* Rename kserve to kserve.yaml

* Update kustomization.yaml
  • Loading branch information
juliusvonkohout authored May 1, 2022
1 parent 353254a commit 5e9fedb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions contrib/networkpolicies/kserve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: kserve
namespace: kubeflow
spec:
podSelector:
matchExpressions:
- key: control-plane
operator: In
values:
- kserve-controller-manager # mutating webhook
# https://www.elastic.co/guide/en/cloud-on-k8s/1.1/k8s-webhook-network-policies.html
# The kubernetes api server must reach the webhook
ingress:
- ports:
- protocol: TCP
port: 9443
policyTypes:
- Ingress
1 change: 1 addition & 0 deletions contrib/networkpolicies/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resources:
- kfserving-models-web-app.yaml
- kfserving.yaml
- kserve-models-web-app.yaml
- kserve.yaml
- metadata-grpc-server.yaml
- minio.yaml
- ml-pipeline-ui.yaml
Expand Down

0 comments on commit 5e9fedb

Please sign in to comment.