forked from kubeflow/manifests
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kserve networkpolicy (kubeflow#2189)
* Create kserve * Rename kserve to kserve.yaml * Update kustomization.yaml
- Loading branch information
1 parent
353254a
commit 5e9fedb
Showing
2 changed files
with
22 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
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 |
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