jasmineWen | 09bc80d | 2018-03-21 18:21:17 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
Mukul | 2b4e753 | 2018-08-03 10:41:29 +0000 | [diff] [blame^] | 2 | # Modifications Copyright © 2018 AT&T |
jasmineWen | 09bc80d | 2018-03-21 18:21:17 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 19 | name: {{ include "common.servicename" . }} |
jasmineWen | 09bc80d | 2018-03-21 18:21:17 +0000 | [diff] [blame] | 20 | namespace: {{ include "common.namespace" . }} |
| 21 | labels: |
| 22 | app: {{ include "common.name" . }} |
| 23 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 24 | release: {{ .Release.Name }} |
| 25 | heritage: {{ .Release.Service }} |
| 26 | spec: |
| 27 | type: {{ .Values.service.type }} |
| 28 | ports: |
Priyanka Jain | 1fda968 | 2018-05-09 08:42:50 +0000 | [diff] [blame] | 29 | {{if eq .Values.service.type "NodePort" -}} |
| 30 | - port: {{ .Values.service.internalPort }} |
| 31 | nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} |
| 32 | name: {{ .Values.service.portName }} |
| 33 | {{- else -}} |
| 34 | - port: {{ .Values.service.internalPort }} |
| 35 | name: {{ .Values.service.portName }} |
| 36 | {{- end}} |
jasmineWen | 09bc80d | 2018-03-21 18:21:17 +0000 | [diff] [blame] | 37 | selector: |
Priyanka Jain | 1fda968 | 2018-05-09 08:42:50 +0000 | [diff] [blame] | 38 | app: {{ include "common.name" . }} |
| 39 | release: {{ .Release.Name }} |
| 40 | clusterIP: None |
| 41 | --- |
Kiran Kamineni | 444f749 | 2018-07-10 10:32:00 -0700 | [diff] [blame] | 42 | apiVersion: v1 |
Priyanka Jain | 1fda968 | 2018-05-09 08:42:50 +0000 | [diff] [blame] | 43 | kind: Service |
| 44 | metadata: |
| 45 | name: {{ include "common.servicename" . }}-ui |
| 46 | namespace: {{ include "common.namespace" . }} |
| 47 | labels: |
| 48 | app: {{ include "common.name" . }} |
| 49 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 50 | release: {{ .Release.Name }} |
| 51 | heritage: {{ .Release.Service }} |
| 52 | spec: |
| 53 | type: {{ .Values.service.type2 }} |
| 54 | ports: |
| 55 | {{if eq .Values.service.type2 "NodePort" -}} |
| 56 | - port: {{ .Values.service.internalPort2 }} |
| 57 | nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }} |
| 58 | name: {{ .Values.service.portName2 }} |
| 59 | {{- else -}} |
| 60 | - port: {{ .Values.service.internalPort2 }} |
| 61 | name: {{ .Values.service.portName2 }} |
| 62 | {{- end}} |
| 63 | selector: |
| 64 | app: {{ include "common.name" . }} |
jasmineWen | 09bc80d | 2018-03-21 18:21:17 +0000 | [diff] [blame] | 65 | release: {{ .Release.Name }} |