From d3ad85c9b9cdbb73e921d5b107721fd72d289a07 Mon Sep 17 00:00:00 2001 From: agrawalgaurav Date: Sat, 16 May 2020 12:16:26 +0530 Subject: [PATCH 1/1] Adding deploy script & expose service Change-Id: Ifd07be94a4ab65d99cf4368b40853000b2841ae9 --- .../applcm/resources/deployment/applcm-broker.yaml | 11 +++++++++-- mecm/mepm/applcm/resources/deployment/deploy.sh | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 mecm/mepm/applcm/resources/deployment/deploy.sh diff --git a/mecm/mepm/applcm/resources/deployment/applcm-broker.yaml b/mecm/mepm/applcm/resources/deployment/applcm-broker.yaml index d87cf06..96b9801 100644 --- a/mecm/mepm/applcm/resources/deployment/applcm-broker.yaml +++ b/mecm/mepm/applcm/resources/deployment/applcm-broker.yaml @@ -7,7 +7,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, +# distributed under the50051 License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. @@ -63,7 +63,14 @@ spec: apiVersion: v1 kind: Service metadata: - annotations: labels: app.service: applcm-broker name: applcm-broker +spec: + type: NodePort + selector: + app: applcm-broker + ports: + - port: 8081 + targetPort: 8081 + nodePort: 30001 diff --git a/mecm/mepm/applcm/resources/deployment/deploy.sh b/mecm/mepm/applcm/resources/deployment/deploy.sh new file mode 100644 index 0000000..c767eee --- /dev/null +++ b/mecm/mepm/applcm/resources/deployment/deploy.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Copyright 2020 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +kubectl apply -f dbhost.yaml +kubectl apply -f helm-plugin.yaml +kubectl apply -f applcm-broker.yaml \ No newline at end of file -- 2.16.6