X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fuui%2Ftemplates%2Fall-services.yaml;h=7f450cd9ae058b882bcd2a9e58f6ffc643df6ed8;hb=e04b2feb855e5ab20e28c867d2bd7f89f6b8c425;hp=e768fe26ac62e4ad0a9d487bad298fa7b687ff3a;hpb=0b23013262a3968fe2d4255bc9cd1010e3e4d1d7;p=oom.git diff --git a/kubernetes/uui/templates/all-services.yaml b/kubernetes/uui/templates/all-services.yaml index e768fe26ac..7f450cd9ae 100644 --- a/kubernetes/uui/templates/all-services.yaml +++ b/kubernetes/uui/templates/all-services.yaml @@ -1,10 +1,37 @@ +# Copyright © 2017 Amdocs, Bell Canada +# +# 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. + +#{{ if not .Values.disableUuiUui }} apiVersion: v1 kind: Service metadata: labels: app: uui name: uui - namespace: "{{ .Values.nsPrefix }}-uui" + namespace: "{{ .Values.nsPrefix }}" + annotations: + msb.onap.org/service-info: '[ + { + "serviceName": "usecaseui-gui", + "version": "v1", + "url": "/usecase-ui", + "path":"/iui/usecaseui", + "protocol": "UI" + "port": "8080", + "visualRange":"1|0" + } + ]' spec: ports: - name: uui @@ -13,3 +40,33 @@ spec: selector: app: uui type: NodePort +#{{ end }} +#{{ if not .Values.disableUuiServer }} +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: uui-server + name: uui-server + namespace: "{{ .Values.nsPrefix }}" + annotations: + msb.onap.org/service-info: '[ + { + "serviceName": "usecaseui-server", + "version": "v1", + "url": "/api/usecaseui/server/v1", + "protocol": "UI" + "port": "8080", + "visualRange":"1|0" + } + ]' +spec: + ports: + - name: uui-server + nodePort: {{ .Values.uuiPortPrefix }}99 + port: 8082 + selector: + app: uui-server + type: NodePort +#{{ end }} \ No newline at end of file