Skip to content

Commit

Permalink
gcp-marketplace: Updating metadata deployment to use gRPC server
Browse files Browse the repository at this point in the history
Change to update gcp marketplace helm charts to use gRPC MLMD metadata
server.
  • Loading branch information
dushyanthsc committed Sep 12, 2019
1 parent 5845315 commit 267d686
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .release.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ steps:
waitFor: ['pullVisualizationServer']

- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/kubeflow-images-public/metadata:v0.1.8']
args: ['pull', 'gcr.io/tfx-oss-public/ml_metadata_store_server:0.14.0']
id: 'PullMetadataServer'
- name: 'gcr.io/cloud-builders/docker'
args: ['tag', 'gcr.io/kubeflow-images-public/metadata:v0.1.8', 'gcr.io/ml-pipeline/google/pipelines/metadataserver:$TAG_NAME']
args: ['tag', 'gcr.io/tfx-oss-public/ml_metadata_store_server:0.14.0', 'gcr.io/ml-pipeline/google/pipelines/metadataserver:$TAG_NAME']
waitFor: ['PullMetadataServer']

- name: 'gcr.io/cloud-builders/docker'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,73 @@ spec:
app.kubernetes.io/name: {{ .Release.Name }}
spec:
containers:
- command:
- ./server/server
- --http_port=8080
- --mysql_service_host=mysql
- --mysql_service_port=3306
{{ if .Values.managedstorage.databaseNamePrefix }}
- --mlmd_db_name={{ .Values.managedstorage.databaseNamePrefix }}_metadata
{{ else }}
- --mlmd_db_name={{ .Release.Name | replace "-" "_" | replace "." "_" | trunc 50 }}_metadata
{{ end }}

image: {{ .Values.images.metadataserver }}
name: container
- name: container
image: {{ .Values.images.metadataserver }}
env:
- name: DBCONFIG_USER
valueFrom:
secretKeyRef:
name: mysql-credential
key: username
- name: DBCONFIG_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-credential
key: password
command: ["/bin/metadata_store_server"]
args: ["--grpc_port=8080",
"--mysql_config_host=mysql",
{{ if .Values.managedstorage.databaseNamePrefix }}
'--mysql_config_database={{ .Values.managedstorage.databaseNamePrefix }}_metadata',
{{ else }}
'--mysql_config_database={{ .Release.Name | replace "-" "_" | replace "." "_" | trunc 50 }}_metadata',
{{ end }}
"--mysql_config_port=3306",
"--mysql_config_user=$(DBCONFIG_USER)",
"--mysql_config_password=$(DBCONFIG_PASSWORD)"
]
ports:
- containerPort: 8080
name: md-backendapi
---
kind: Service
apiVersion: v1
metadata:
labels:
app: metadata
app.kubernetes.io/name: {{ .Release.Name }}
name: metadata-envoy-service
spec:
selector:
component: metadata-envoy
type: ClusterIP
ports:
- port: 9090
protocol: TCP
name: md-envoy
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: metadata-envoy
labels:
component: metadata-envoy
app.kubernetes.io/name: {{ .Release.Name }}
spec:
replicas: 1
selector:
matchLabels:
component: metadata-envoy
template:
metadata:
labels:
component: metadata-envoy
spec:
containers:
- name: container
image: gcr.io/ml-pipeline/envoy:initial
ports:
- containerPort: 8080
name: md-backendapi
- name: md-envoy
containerPort: 9090
- name: envoy-admin
containerPort: 9901
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ images:
argoworkflowcontroller: gcr.io/ml-pipeline/workflow-controller:v2.3.0
cloudsqlproxy: gcr.io/cloudsql-docker/gce-proxy:1.14
frontend: gcr.io/ml-pipeline/frontend:0.1.27
metadataserver: gcr.io/kubeflow-images-public/metadata:v0.1.8
metadataserver: gcr.io/tfx-oss-public/ml_metadata_store_server:0.14.0
minio: gcr.io/ml-pipeline/minio:RELEASE.2019-08-14T20-37-41Z
mysql: gcr.io/ml-pipeline/mysql:5.6
persistenceagent: gcr.io/ml-pipeline/persistenceagent:0.1.27
Expand Down

0 comments on commit 267d686

Please sign in to comment.