Skip to content

Commit

Permalink
Added MLMD GRPC Server Network Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Aug 15, 2024
1 parent 94eb6c6 commit ab80834
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 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,27 @@
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'
namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{ .Namespace }}
- podSelector:
matchLabels:
app: ds-pipeline-metadata-envoy-{{.Name}}
component: data-science-pipelines
policyTypes:
- Ingress

0 comments on commit ab80834

Please sign in to comment.