diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-03-12 14:16:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-12 14:16:39 +0000 |
commit | 367b492a7fab6170e726b24e39fe82d0c19358ae (patch) | |
tree | feb3f1e94b2c3ce2e91a80d21781b66ad5328e27 /kubernetes/dmaap/components/dmaap-bc/templates/service.yaml | |
parent | 572c847bc96b73232132754177f4168da9ff960d (diff) | |
parent | 0de113ef7696c0ad4d008a94793f52a9b8e2831c (diff) |
Merge "[DMaaP BC] Use common.service template"
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-bc/templates/service.yaml')
-rw-r--r-- | kubernetes/dmaap/components/dmaap-bc/templates/service.yaml | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml b/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml index ea26452c01..9c9414f48d 100644 --- a/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml +++ b/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml @@ -13,38 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: v1 -kind: Service -metadata: - name: {{ .Values.service.name }} - namespace: {{ include "common.namespace" . }} - labels: - app: {{ include "common.name" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ include "common.release" . }} - heritage: {{ .Release.Service }} -spec: - type: {{ .Values.service.type }} - ports: - {{if eq .Values.service.type "NodePort" -}} - {{- if .Values.global.allow_http }} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} - name: {{ .Values.service.name }} - {{- end}} - - port: {{ .Values.service.externalPort2 }} - targetPort: {{ .Values.service.internalPort2 }} - nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }} - name: {{ .Values.service.name }}2 - {{- else -}} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - name: {{ .Values.service.name }} - - port: {{ .Values.service.externalPort2 }} - targetPort: {{ .Values.service.internalPort2 }} - name: {{ .Values.service.name }}2 - {{- end}} - selector: - app: {{ include "common.name" . }} - release: {{ include "common.release" . }} +{{ include "common.service" . }} |