Exposed 8080 and 9090 ports in onap-cli 99/28999/1
authorEC2 Default User <xiaobo.chen@tieto.com>
Wed, 24 Jan 2018 07:39:36 +0000 (07:39 +0000)
committerEC2 Default User <xiaobo.chen@tieto.com>
Wed, 24 Jan 2018 07:54:47 +0000 (07:54 +0000)
Exposed 8080 and 9090 ports in onap-cli kubernetes service to enable access CLI in webpage

Change-Id: Ie9a76539255b7b93453590ba230cd25d9e61f21b
Issue-ID: OOM-589
Signed-off-by: EC2 Default User <xiaobo.chen@tieto.com>
kubernetes/cli/templates/all-service.yaml
kubernetes/cli/templates/cli-deployment.yaml

index e848bfd..24e1979 100644 (file)
@@ -8,11 +8,15 @@ metadata:
     app: cli
 spec:
   ports:
-  - name: 80-port
-    port: 80
+  - name: 8080-port
+    port: 8080
     targetPort: 80
     nodePort: {{ .Values.nodePortPrefix }}60
+  - name: 9090-port
+    port: 9090
+    targetPort: 8080
+    nodePort: {{ .Values.nodePortPrefix }}61
   type: NodePort
   selector:
     app: cli
-#{{ end }}
\ No newline at end of file
+#{{ end }}
index 3a702b9..128c28a 100644 (file)
@@ -25,6 +25,7 @@ spec:
           value: daemon
         ports:
         - containerPort: 80
+        - containerPort: 8080
           name: cli
         readinessProbe:
           tcpSocket:
@@ -33,4 +34,4 @@ spec:
           periodSeconds: 10
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }}
\ No newline at end of file
+#{{ end }}