Skip to content

Commit

Permalink
Update minio and metadata-envoy networkpolicy (kubeflow#2205)
Browse files Browse the repository at this point in the history
* Update minio.yaml

* Add files via upload

* Update kustomization.yaml

(cherry picked from commit cbc18ec)
  • Loading branch information
juliusvonkohout authored and VaishnaviHire committed Aug 16, 2022
1 parent f04757c commit 757f757
Show file tree
Hide file tree
Showing 3 changed files with 31 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 @@ -13,6 +13,7 @@ resources:
- kfserving.yaml
- kserve-models-web-app.yaml
- kserve.yaml
- metatada-envoy.yaml
- metadata-grpc-server.yaml
- minio.yaml
- ml-pipeline-ui.yaml
Expand Down
24 changes: 24 additions & 0 deletions contrib/networkpolicies/metadata-envoy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: metatada-envoy
namespace: kubeflow
spec:
podSelector:
matchExpressions:
- key: component
operator: In
values:
- metadata-envoy
ingress:
- from:
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values:
- istio-system
- podSelector: {}
policyTypes:
- Ingress

6 changes: 6 additions & 0 deletions contrib/networkpolicies/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ spec:
operator: In
values:
- kubeflow-profile
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values:
- istio-system
- podSelector: {} # allow all pods from the same namespace
policyTypes:
- Ingress

0 comments on commit 757f757

Please sign in to comment.