Skip to content

Commit

Permalink
manifest/metadata: Switching to use metadata grpc server (#1973)
Browse files Browse the repository at this point in the history
This change switches pipeline deployments to use metadata-grpc server
instead of kf-mlmd server.
  • Loading branch information
dushyanthsc authored Sep 3, 2019
1 parent c65111c commit 1b4919f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
1 change: 1 addition & 0 deletions manifests/kustomize/base/metadata/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Kustomization
resources:
- metadata-deployment.yaml
- metadata-service.yaml
- mlmd-server-configmap.yaml
19 changes: 13 additions & 6 deletions manifests/kustomize/base/metadata/metadata-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ spec:
spec:
containers:
- name: container
image: gcr.io/kubeflow-images-public/metadata:v0.1.8
command: ["./server/server",
"--http_port=8080",
"--mysql_service_host=mysql",
"--mysql_service_port=3306",
"--mlmd_db_name=metadb"]
image: gcr.io/tfx-oss-public/ml_metadata_store_server:0.14.0
env:
- name: GRPC_PORT
value: "8080"
- name: METADATA_STORE_SERVER_CONFIG_FILE
value: "/etc/config/mlmd_config.prototxt"
ports:
- name: md-backendapi
containerPort: 8080
volumeMounts:
- name: mlmd-server-config-volume
mountPath: /etc/config
volumes:
- name: mlmd-server-config-volume
configMap:
name: mlmd-service-configmap
17 changes: 17 additions & 0 deletions manifests/kustomize/base/metadata/mlmd-server-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mlmd-service-configmap
labels:
component: metadata-server
data:
mlmd_config.prototxt: |
connection_config: <
mysql: <
host: "mysql"
port: 3306
database: "metadb"
user: "root"
password: ""
>
>

0 comments on commit 1b4919f

Please sign in to comment.