blob: 85ec8c84287cadf45dbf9e89b74176264dface08 [file] [log] [blame]
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -04001{{/*
2# Copyright © 2019 Bell Canada
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
17apiVersion: v1
18kind: Service
19metadata:
20 name: {{ include "common.servicename" . }}-rmq-mgmt
21 namespace: {{ include "common.namespace" . }}
22 labels:
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010025 release: {{ include "common.release" . }}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040026 heritage: {{ .Release.Service }}
27spec:
28 type: {{ .Values.service.rmqmgmt.type }}
29 ports:
30 - port: {{ .Values.service.rmqmgmt.externalPort }}
31 targetPort: {{ .Values.service.rmqmgmt.internalPort }}
32 name: {{ .Values.service.rmqmgmt.portName }}
33 selector:
34 app: {{ include "common.fullname" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010035 release: {{ include "common.release" . }}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040036---
37apiVersion: v1
38kind: Service
39metadata:
40 name: {{ include "common.servicename" . }}-web
41 namespace: {{ include "common.namespace" . }}
42 labels:
43 app: {{ include "common.name" . }}
44 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010045 release: {{ include "common.release" . }}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040046 heritage: {{ .Release.Service }}
47spec:
48 type: {{ .Values.service.web.type }}
49 ports:
50 - port: {{ .Values.service.web.externalPort }}
51 targetPort: {{ .Values.service.web.internalPort }}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040052 name: {{ .Values.service.web.portName }}
53 selector:
54 app: {{ include "common.fullname" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010055 release: {{ include "common.release" . }}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040056---
57apiVersion: v1
58kind: Service
59metadata:
60 name: {{ include "common.servicename" . }}-rabbitmq
61 namespace: {{ include "common.namespace" . }}
62 labels:
63 app: {{ include "common.fullname" . }}
64 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010065 release: {{ include "common.release" . }}
Alexis de Talhouëtf83449d2019-05-09 16:49:30 -040066 heritage: {{ .Release.Service }}
67 type: LoadBalancer
68spec:
69 type: {{ .Values.service.rabbitmq.type }}
70 ports:
71 - port: {{ .Values.service.rabbitmq.http.externalPort }}
72 targetPort: {{ .Values.service.rabbitmq.http.internalPort }}
73 name: {{ .Values.service.rabbitmq.http.portName }}
74 - port: {{ .Values.service.rabbitmq.amqp.externalPort }}
75 targetPort: {{ .Values.service.rabbitmq.amqp.internalPort }}
76 name: {{ .Values.service.rabbitmq.amqp.portName }}
77 selector:
78 app: {{ include "common.fullname" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010079 release: {{ include "common.release" . }}