1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 msb.onap.org/service-info: '[
28 "serviceName": "sdnc",
32 "port": "{{ .Values.service.externalPort }}",
38 type: {{ .Values.service.type }}
40 {{if eq .Values.service.type "NodePort" -}}
41 - port: {{ .Values.service.externalPort }}
42 targetPort: {{ .Values.service.internalPort }}
43 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
44 name: "{{ .Values.service.name }}-8282"
45 - port: {{ .Values.service.externalPort2 }}
46 targetPort: {{ .Values.service.internalPort2 }}
47 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }}
48 name: "{{ .Values.service.name }}-8202"
49 - port: {{ .Values.service.externalPort3 }}
50 targetPort: {{ .Values.service.internalPort3 }}
51 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort3 }}
52 name: "{{ .Values.service.name }}-8280"
54 - port: {{ .Values.service.externalPort }}
55 targetPort: {{ .Values.service.internalPort }}
56 name: {{ .Values.service.name }}
59 app: {{ include "common.name" . }}
60 release: {{ .Release.Name }}
65 name: {{ .Values.service.name }}-cluster
66 namespace: {{ include "common.namespace" . }}
68 app: {{ include "common.name" . }}
69 release: {{ .Release.Name }}
71 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
74 - name: "{{ .Values.service.name }}-cluster-port"
75 port: {{ .Values.service.clusterPort }}
78 app: {{ include "common.name" . }}
79 release: {{ .Release.Name }}
83 {{ if .Values.geoEnabled }}
88 name: sdnhost-{{ include "common.fullname" . }}-0
89 namespace: {{ .Release.Namespace }}
91 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-0
94 - name: {{ include "common.fullname" . }}-0-port-{{ .Values.service.internalPort4 }}
95 port: {{ .Values.service.clusterPort2 }}
96 targetPort: {{ .Values.service.internalPort4 }}
97 nodePort: {{ .Values.nodePortPrefix }}{{ .Values.service.geoNodePort4 }}
98 - name: {{ include "common.fullname" . }}-0-port-{{ .Values.service.internalPort }}
99 port: {{ .Values.service.clusterPort3 }}
100 targetPort: {{ .Values.service.internalPort }}
101 nodePort: {{ .Values.nodePortPrefix }}{{ .Values.service.geoNodePort1 }}
104 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-0
106 {{ if .Values.geoEnabled }}
111 name: sdnhost-{{ include "common.fullname" . }}-1
112 namespace: {{ .Release.Namespace }}
114 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-1
117 - name: {{ include "common.fullname" . }}-1-port-{{ .Values.service.internalPort4 }}
118 port: {{ .Values.service.clusterPort2 }}
119 targetPort: {{ .Values.service.internalPort4 }}
120 nodePort: {{ .Values.nodePortPrefix }}{{ .Values.service.geoNodePort5 }}
121 - name: {{ include "common.fullname" . }}-1-port-{{ .Values.service.internalPort }}
122 port: {{ .Values.service.clusterPort3 }}
123 targetPort: {{ .Values.service.internalPort }}
124 nodePort: {{ .Values.nodePortPrefix }}{{ .Values.service.geoNodePort2 }}
127 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-1
129 {{ if .Values.geoEnabled }}
134 name: sdnhost-{{ include "common.fullname" . }}-2
135 namespace: {{ .Release.Namespace }}
137 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-2
140 - name: {{ include "common.fullname" . }}-2-port-{{ .Values.service.internalPort4 }}
141 port: {{ .Values.service.clusterPort2 }}
142 targetPort: {{ .Values.service.internalPort4 }}
143 nodePort: {{ .Values.nodePortPrefix }}{{ .Values.service.geoNodePort6 }}
144 - name: {{ include "common.fullname" . }}-2-port-{{ .Values.service.internalPort }}
145 port: {{ .Values.service.clusterPort3 }}
146 targetPort: {{ .Values.service.internalPort }}
147 nodePort: {{ .Values.nodePortPrefix }}{{ .Values.service.geoNodePort3 }}
150 statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-2