Adding deploy script & expose service 71/3471/2
authoragrawalgaurav <gaurav.agrawal@huawei.com>
Sat, 16 May 2020 06:46:26 +0000 (12:16 +0530)
committerGaurav Agrawal <gaurav.agrawal@huawei.com>
Sat, 16 May 2020 07:01:58 +0000 (07:01 +0000)
Change-Id: Ifd07be94a4ab65d99cf4368b40853000b2841ae9

mecm/mepm/applcm/resources/deployment/applcm-broker.yaml
mecm/mepm/applcm/resources/deployment/deploy.sh [new file with mode: 0644]

index d87cf06..96b9801 100644 (file)
@@ -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 (file)
index 0000000..c767eee
--- /dev/null
@@ -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