Skip to content

Commit 8461cfb

Browse files
K8SPSMDB-1329: Add expose.loadBalancerClass (#525)
Co-authored-by: Julio Pasinatto <[email protected]>
1 parent 9439ae9 commit 8461cfb

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Diff for: charts/psmdb-db/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ The chart can be customized using the following configurable parameters:
120120
| `replsets.rs0.splitHorizons` | External URI for Split-horizon for replica set Pods of the exposed cluster | `{}` |
121121
| `replsets.rs0.expose.enabled` | Allow access to replicaSet from outside of Kubernetes | `false` |
122122
| `replsets.rs0.expose.type` | Network service access point type | `ClusterIP` |
123+
| `replsets.rs0.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
123124
| `replsets.rs0.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
124125
| `replsets.rs0.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
125126
| `replsets.rs0.expose.annotations` | ReplicaSet service annotations | `{}` |
@@ -212,6 +213,7 @@ The chart can be customized using the following configurable parameters:
212213
| `sharding.configrs.podDisruptionBudget.maxUnavailable` | Config ReplicaSet failed Pods maximum quantity | `1` |
213214
| `sharding.configrs.expose.enabled` | Allow access to cfg replica from outside of Kubernetes | `false` |
214215
| `sharding.configrs.expose.type` | Network service access point type | `ClusterIP` |
216+
| `sharding.configrs.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
215217
| `sharding.configrs.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
216218
| `sharding.configrs.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
217219
| `sharding.configrs.expose.annotations` | Config ReplicaSet service annotations | `{}` |
@@ -259,6 +261,7 @@ The chart can be customized using the following configurable parameters:
259261
| `sharding.mongos.resources.requests.cpu` | Mongos Pods resource requests CPU | `300m` |
260262
| `sharding.mongos.resources.requests.memory` | Mongos Pods resource requests memory | `0.5G` |
261263
| `sharding.mongos.expose.type` | Mongos service type | `ClusterIP` |
264+
| `sharding.mongos.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
262265
| `sharding.mongos.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
263266
| `sharding.mongos.expose.servicePerPod` | Create a separate ClusterIP Service for each mongos instance | `false` |
264267
| `sharding.mongos.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |

Diff for: charts/psmdb-db/templates/cluster.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ spec:
201201
expose:
202202
enabled: {{ $replset.expose.enabled }}
203203
type: {{ $replset.expose.type }}
204+
{{- if $replset.expose.loadBalancerClass }}
205+
loadBalancerClass: {{ $replset.expose.loadBalancerClass }}
206+
{{- end }}
204207
{{- if $replset.expose.loadBalancerIP }}
205208
loadBalancerIP: {{ $replset.expose.loadBalancerIP }}
206209
{{- end }}
@@ -449,6 +452,9 @@ spec:
449452
expose:
450453
enabled: {{ .Values.sharding.configrs.expose.enabled }}
451454
type: {{ .Values.sharding.configrs.expose.type }}
455+
{{- if .Values.sharding.configrs.expose.loadBalancerClass }}
456+
loadBalancerClass: {{ .Values.sharding.configrs.expose.loadBalancerClass }}
457+
{{- end }}
452458
{{- if .Values.sharding.configrs.expose.loadBalancerIP }}
453459
loadBalancerIP: {{ .Values.sharding.configrs.expose.loadBalancerIP }}
454460
{{- end }}
@@ -583,6 +589,9 @@ spec:
583589
memory: {{ .Values.sharding.mongos.resources.requests.memory }}
584590
expose:
585591
type: {{ .Values.sharding.mongos.expose.type }}
592+
{{- if .Values.sharding.mongos.expose.loadBalancerClass }}
593+
loadBalancerClass: {{ .Values.sharding.mongos.expose.loadBalancerClass }}
594+
{{- end }}
586595
{{- if .Values.sharding.mongos.expose.loadBalancerIP }}
587596
loadBalancerIP: {{ .Values.sharding.mongos.expose.loadBalancerIP }}
588597
{{- end }}

Diff for: charts/psmdb-db/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ replsets:
228228
expose:
229229
enabled: false
230230
type: ClusterIP
231+
# loadBalancerClass: ""
231232
# loadBalancerIP: 10.0.0.0
232233
# loadBalancerSourceRanges:
233234
# - 10.0.0.0/8
@@ -404,6 +405,7 @@ sharding:
404405
expose:
405406
enabled: false
406407
type: ClusterIP
408+
# loadBalancerClass: ""
407409
# loadBalancerIP: 10.0.0.0
408410
# loadBalancerSourceRanges:
409411
# - 10.0.0.0/8
@@ -499,6 +501,7 @@ sharding:
499501
expose:
500502
enabled: false
501503
type: ClusterIP
504+
# loadBalancerClass: ""
502505
# loadBalancerIP: 10.0.0.0/8
503506
# loadBalancerSourceRanges:
504507
# - 10.0.0.0/8

0 commit comments

Comments
 (0)