Skip to content

Commit

Permalink
Add tensorboards-web-app.yaml networkpolicy (kubeflow#2304)
Browse files Browse the repository at this point in the history
* Create tensorboards-web-app

* Update kustomization.yaml

* Rename tensorboards-web-app to tensorboards-web-app.yaml
  • Loading branch information
juliusvonkohout authored and kevin85421 committed Feb 28, 2023
1 parent ac6d543 commit c7263b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/networkpolicies/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ resources:
- poddefaults.yaml
- seldon.yaml
- volumes-web-app.yaml
- tensorboards-web-app.yaml
25 changes: 25 additions & 0 deletions contrib/networkpolicies/tensorboards-web-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: tensorboards-web-app
namespace: kubeflow
spec:
podSelector:
matchExpressions:
- key: app
operator: In
values:
- tensorboards-web-app
ingress:
- from:
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values:
- istio-system
ports:
- protocol: TCP
port: 5000
policyTypes:
- Ingress

0 comments on commit c7263b0

Please sign in to comment.