From 4b81b5a6a5c420121c27fe5ff3f54cfcc86a6132 Mon Sep 17 00:00:00 2001 From: liboNet Date: Tue, 30 Apr 2019 09:26:11 +0800 Subject: integrate artifact broker into multicloud plugins add config.json for each multicloud plugin update deployment to add it as sidecar update the values.yaml of multicloud to store image name remove the hardcode namespace fix typo and use 1.3.1 image tag Change-Id: I6cc9e381ea655b1d75760b013d2be693b0c0575c Issue-ID: MULTICLOUD-597 Signed-off-by: liboNet --- .../multicloud-windriver/templates/deployment.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'kubernetes/multicloud/charts/multicloud-windriver/templates') diff --git a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml index 99b1ea9557..e6f1456874 100644 --- a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml +++ b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml @@ -62,6 +62,8 @@ spec: - mountPath: /opt/windriver/titanium_cloud/pub/config/log.yml name: windriver-logconfig subPath: log.yml + - mountPath: /opt/artifacts/ + name: artifact-data resources: {{ include "common.resources" . | indent 12 }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" @@ -94,6 +96,19 @@ spec: name: windriver-log - mountPath: /usr/share/filebeat/data name: windriver-data-filebeat + - image: "{{ include "common.repository" . }}/{{ .Values.global.artifactImage }}" + name: framework-artifactbroker + command: ["/opt/app/distribution/bin/artifact-dist.sh"] + args: ["/opt/app/distribution/etc/mounted/config.json"] + ports: + - containerPort: 9014 + protocol: TCP + volumeMounts: + - mountPath: /opt/app/distribution/etc/mounted/config.json + name: windriver-logconfig + subPath: config.json + - mountPath: /data + name: artifact-data volumes: - name: windriver-log @@ -106,6 +121,8 @@ spec: - name: windriver-logconfig configMap: name: {{ include "common.fullname" . }}-log-configmap + - name: artifact-data + emptyDir: {} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" restartPolicy: Always -- cgit 1.2.3-korg