forked from kubeflow/manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
networkpolicy for training operator (kubeflow#2786)
networkpolicy for training operator Signed-off-by: juliusvonkohout <45896133+juliusvonkohout@users.noreply.github.com> Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
- Loading branch information
1 parent
0083f24
commit 34d7c39
Showing
2 changed files
with
22 additions
and
1 deletion.
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
20 changes: 20 additions & 0 deletions
20
common/networkpolicies/base/training-operator-webhook.yaml
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,20 @@ | ||
kind: NetworkPolicy | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
name: training-operator-webhook | ||
namespace: kubeflow | ||
spec: | ||
podSelector: | ||
matchExpressions: | ||
- key: control-plane | ||
operator: In | ||
values: | ||
- kubeflow-training-operator | ||
# 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 |