Skip to content

Commit

Permalink
Added MLMD GRPC Server Network Policy
Browse files Browse the repository at this point in the history
Signed-off-by: vmudadla <vmudadla@redhat.com>
  • Loading branch information
VaniHaripriya committed Aug 16, 2024
1 parent 94eb6c6 commit d1cef16
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config/internal/ml-metadata/metadata-grpc.networkpolicy.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: ds-pipeline-metadata-grpc-{{ .Name }}
namespace: {{ .Namespace }}
spec:
podSelector:
matchLabels:
app: ds-pipeline-metadata-grpc-{{ .Name }}
component: data-science-pipelines
ingress:
- ports:
- protocol: TCP
port: 8080
from:
- podSelector:
matchLabels:
pipelines.kubeflow.org/v2_component: 'true'
- podSelector:
matchLabels:
app: ds-pipeline-metadata-envoy-{{.Name}}
component: data-science-pipelines
policyTypes:
- Ingress

0 comments on commit d1cef16

Please sign in to comment.