From db6c9b4fd0c213b2991d71a427daaf8b6d6ac092 Mon Sep 17 00:00:00 2001 From: dushyanthsc <43390008+dushyanthsc@users.noreply.github.com> Date: Thu, 22 Aug 2019 13:11:18 -0700 Subject: [PATCH] pipeline-lite: Introduce metadata component to pipeline-lite (#1840) This change introduces the metadata component to pipeline-lite installation. This installation: 1. Does not include metadata-ui 2. mysql installation is used instead of metadata-db 3. Replica count has been reduced 1 instead of 3 --- manifests/kustomize/base/kustomization.yaml | 1 + .../base/metadata/kustomization.yaml | 6 +++++ .../base/metadata/metadata-deployment.yaml | 27 +++++++++++++++++++ .../base/metadata/metadata-service.yaml | 14 ++++++++++ .../base/pipeline/kustomization.yaml | 2 +- 5 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 manifests/kustomize/base/metadata/kustomization.yaml create mode 100644 manifests/kustomize/base/metadata/metadata-deployment.yaml create mode 100644 manifests/kustomize/base/metadata/metadata-service.yaml diff --git a/manifests/kustomize/base/kustomization.yaml b/manifests/kustomize/base/kustomization.yaml index 99fe9419597..0daf7b16455 100644 --- a/manifests/kustomize/base/kustomization.yaml +++ b/manifests/kustomize/base/kustomization.yaml @@ -6,6 +6,7 @@ bases: - crds - pipeline - proxy +- metadata images: - name: argoproj/workflow-controller diff --git a/manifests/kustomize/base/metadata/kustomization.yaml b/manifests/kustomize/base/metadata/kustomization.yaml new file mode 100644 index 00000000000..ac11f97c4d2 --- /dev/null +++ b/manifests/kustomize/base/metadata/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - metadata-deployment.yaml + - metadata-service.yaml diff --git a/manifests/kustomize/base/metadata/metadata-deployment.yaml b/manifests/kustomize/base/metadata/metadata-deployment.yaml new file mode 100644 index 00000000000..7d37aa76eb1 --- /dev/null +++ b/manifests/kustomize/base/metadata/metadata-deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: metadata-deployment + labels: + component: metadata-server +spec: + replicas: 1 + selector: + matchLabels: + component: metadata-server + template: + metadata: + labels: + component: metadata-server + 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"] + ports: + - name: md-backendapi + containerPort: 8080 diff --git a/manifests/kustomize/base/metadata/metadata-service.yaml b/manifests/kustomize/base/metadata/metadata-service.yaml new file mode 100644 index 00000000000..18f9ab3de14 --- /dev/null +++ b/manifests/kustomize/base/metadata/metadata-service.yaml @@ -0,0 +1,14 @@ +kind: Service +apiVersion: v1 +metadata: + labels: + app: metadata + name: metadata-service +spec: + selector: + component: metadata-server + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: md-backendapi diff --git a/manifests/kustomize/base/pipeline/kustomization.yaml b/manifests/kustomize/base/pipeline/kustomization.yaml index 0f2b82b68db..a51088ef1fe 100644 --- a/manifests/kustomize/base/pipeline/kustomization.yaml +++ b/manifests/kustomize/base/pipeline/kustomization.yaml @@ -28,4 +28,4 @@ resources: - ml-pipeline-visualization-service.yaml - pipeline-runner-role.yaml - pipeline-runner-rolebinding.yaml -- pipeline-runner-sa.yaml \ No newline at end of file +- pipeline-runner-sa.yaml