Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 1 | {{/* |
| 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 | |
| 17 | apiVersion: v1 |
| 18 | kind: Service |
| 19 | metadata: |
| 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 Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 25 | release: {{ include "common.release" . }} |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 26 | heritage: {{ .Release.Service }} |
| 27 | spec: |
| 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 Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 35 | release: {{ include "common.release" . }} |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 36 | --- |
| 37 | apiVersion: v1 |
| 38 | kind: Service |
| 39 | metadata: |
| 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 Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 45 | release: {{ include "common.release" . }} |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 46 | heritage: {{ .Release.Service }} |
| 47 | spec: |
| 48 | type: {{ .Values.service.web.type }} |
| 49 | ports: |
| 50 | - port: {{ .Values.service.web.externalPort }} |
| 51 | targetPort: {{ .Values.service.web.internalPort }} |
| 52 | nodePort: {{ .Values.global.nodePortPrefixExt | default .Values.nodePortPrefixExt }}{{ .Values.service.web.nodePort }} |
| 53 | name: {{ .Values.service.web.portName }} |
| 54 | selector: |
| 55 | app: {{ include "common.fullname" . }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 56 | release: {{ include "common.release" . }} |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 57 | --- |
| 58 | apiVersion: v1 |
| 59 | kind: Service |
| 60 | metadata: |
| 61 | name: {{ include "common.servicename" . }}-rabbitmq |
| 62 | namespace: {{ include "common.namespace" . }} |
| 63 | labels: |
| 64 | app: {{ include "common.fullname" . }} |
| 65 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 66 | release: {{ include "common.release" . }} |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 67 | heritage: {{ .Release.Service }} |
| 68 | type: LoadBalancer |
| 69 | spec: |
| 70 | type: {{ .Values.service.rabbitmq.type }} |
| 71 | ports: |
| 72 | - port: {{ .Values.service.rabbitmq.http.externalPort }} |
| 73 | targetPort: {{ .Values.service.rabbitmq.http.internalPort }} |
| 74 | name: {{ .Values.service.rabbitmq.http.portName }} |
| 75 | - port: {{ .Values.service.rabbitmq.amqp.externalPort }} |
| 76 | targetPort: {{ .Values.service.rabbitmq.amqp.internalPort }} |
| 77 | name: {{ .Values.service.rabbitmq.amqp.portName }} |
| 78 | selector: |
| 79 | app: {{ include "common.fullname" . }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 80 | release: {{ include "common.release" . }} |