-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added MLMD GRPC Server Network Policy
- Loading branch information
1 parent
94eb6c6
commit ab80834
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
config/internal/ml-metadata/metadata-grpc.networkpolicy.yaml.tmpl
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,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 |