diff options
author | EC2 Default User <xiaobo.chen@tieto.com> | 2018-01-24 07:39:36 +0000 |
---|---|---|
committer | EC2 Default User <xiaobo.chen@tieto.com> | 2018-01-24 07:54:47 +0000 |
commit | 664755aad15416ce953f57b4b75ce923f5e5dc7d (patch) | |
tree | 9cdd03ab585555bb145aa205e01b6da4de7a1051 | |
parent | 310d77c7810b0280fc7ef0b2b5e38b32a55ba5a6 (diff) |
Exposed 8080 and 9090 ports in onap-cli
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>
-rw-r--r-- | kubernetes/cli/templates/all-service.yaml | 10 | ||||
-rw-r--r-- | kubernetes/cli/templates/cli-deployment.yaml | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/kubernetes/cli/templates/all-service.yaml b/kubernetes/cli/templates/all-service.yaml index e848bfdc38..24e19792e1 100644 --- a/kubernetes/cli/templates/all-service.yaml +++ b/kubernetes/cli/templates/all-service.yaml @@ -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 }} diff --git a/kubernetes/cli/templates/cli-deployment.yaml b/kubernetes/cli/templates/cli-deployment.yaml index 3a702b9016..128c28a7f1 100644 --- a/kubernetes/cli/templates/cli-deployment.yaml +++ b/kubernetes/cli/templates/cli-deployment.yaml @@ -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 }} |