|
| 1 | +{{- if (.Values.route.loadBalancer.hacrrtraffic) }} |
| 2 | +# © Copyright IBM Corporation 2025 |
| 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 | +# A seperate load balancer to MQ data and web console is used. On certain |
| 17 | +# platforms, such as AWS EKS, if all ports are combined it does not work. |
| 18 | +# This is due to port 1414 not being open in recovery mode. Therefore a |
| 19 | +# individual loadbalancer for Native HA CRR is created. |
| 20 | + |
| 21 | +apiVersion: v1 |
| 22 | +kind: Service |
| 23 | +metadata: |
| 24 | + name: {{ include "ibm-mq.fullname" . }}-loadbalancer-hacrr |
| 25 | + labels: |
| 26 | + {{- include "ibm-mq.labels" . | nindent 4 }} |
| 27 | + # Additional annotations to be added to the load balancer annotations |
| 28 | + {{- with .Values.route.loadBalancer.annotations }} |
| 29 | + annotations: |
| 30 | + {{- toYaml . | nindent 4 }} |
| 31 | + {{- end }} |
| 32 | +spec: |
| 33 | + type: LoadBalancer |
| 34 | + ports: |
| 35 | + {{- if .Values.route.loadBalancer.hacrrtraffic }} |
| 36 | + - port: 9415 |
| 37 | + name: ha-crr |
| 38 | + {{- end }} |
| 39 | + {{- if .Values.route.loadBalancer.loadBalancerSourceRanges }} |
| 40 | + loadBalancerSourceRanges: |
| 41 | + {{- range $group := .Values.route.loadBalancer.loadBalancerSourceRanges }} |
| 42 | + - {{ $group -}} |
| 43 | + {{ end }} |
| 44 | + {{- end }} |
| 45 | + selector: |
| 46 | +{{- include "ibm-mq.selectorLabels" . | nindent 4 }} |
| 47 | +{{- end }} |
0 commit comments