Skip to content

K8SPSMDB-1329: Add expose.loadBalancerClass #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ The chart can be customized using the following configurable parameters:
| `replsets.rs0.splitHorizons` | External URI for Split-horizon for replica set Pods of the exposed cluster | `{}` |
| `replsets.rs0.expose.enabled` | Allow access to replicaSet from outside of Kubernetes | `false` |
| `replsets.rs0.expose.type` | Network service access point type | `ClusterIP` |
| `replsets.rs0.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
| `replsets.rs0.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
| `replsets.rs0.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
| `replsets.rs0.expose.annotations` | ReplicaSet service annotations | `{}` |
Expand Down Expand Up @@ -212,6 +213,7 @@ The chart can be customized using the following configurable parameters:
| `sharding.configrs.podDisruptionBudget.maxUnavailable` | Config ReplicaSet failed Pods maximum quantity | `1` |
| `sharding.configrs.expose.enabled` | Allow access to cfg replica from outside of Kubernetes | `false` |
| `sharding.configrs.expose.type` | Network service access point type | `ClusterIP` |
| `sharding.configrs.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
| `sharding.configrs.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
| `sharding.configrs.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
| `sharding.configrs.expose.annotations` | Config ReplicaSet service annotations | `{}` |
Expand Down Expand Up @@ -259,6 +261,7 @@ The chart can be customized using the following configurable parameters:
| `sharding.mongos.resources.requests.cpu` | Mongos Pods resource requests CPU | `300m` |
| `sharding.mongos.resources.requests.memory` | Mongos Pods resource requests memory | `0.5G` |
| `sharding.mongos.expose.type` | Mongos service type | `ClusterIP` |
| `sharding.mongos.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
| `sharding.mongos.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
| `sharding.mongos.expose.servicePerPod` | Create a separate ClusterIP Service for each mongos instance | `false` |
| `sharding.mongos.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
Expand Down
9 changes: 9 additions & 0 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ spec:
expose:
enabled: {{ $replset.expose.enabled }}
type: {{ $replset.expose.type }}
{{- if $replset.expose.loadBalancerClass }}
loadBalancerClass: {{ $replset.expose.loadBalancerClass }}
{{- end }}
{{- if $replset.expose.loadBalancerIP }}
loadBalancerIP: {{ $replset.expose.loadBalancerIP }}
{{- end }}
Expand Down Expand Up @@ -449,6 +452,9 @@ spec:
expose:
enabled: {{ .Values.sharding.configrs.expose.enabled }}
type: {{ .Values.sharding.configrs.expose.type }}
{{- if .Values.sharding.configrs.expose.loadBalancerClass }}
loadBalancerClass: {{ .Values.sharding.configrs.expose.loadBalancerClass }}
{{- end }}
{{- if .Values.sharding.configrs.expose.loadBalancerIP }}
loadBalancerIP: {{ .Values.sharding.configrs.expose.loadBalancerIP }}
{{- end }}
Expand Down Expand Up @@ -583,6 +589,9 @@ spec:
memory: {{ .Values.sharding.mongos.resources.requests.memory }}
expose:
type: {{ .Values.sharding.mongos.expose.type }}
{{- if .Values.sharding.mongos.expose.loadBalancerClass }}
loadBalancerClass: {{ .Values.sharding.mongos.expose.loadBalancerClass }}
{{- end }}
{{- if .Values.sharding.mongos.expose.loadBalancerIP }}
loadBalancerIP: {{ .Values.sharding.mongos.expose.loadBalancerIP }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ replsets:
expose:
enabled: false
type: ClusterIP
# loadBalancerClass: ""
# loadBalancerIP: 10.0.0.0
# loadBalancerSourceRanges:
# - 10.0.0.0/8
Expand Down Expand Up @@ -404,6 +405,7 @@ sharding:
expose:
enabled: false
type: ClusterIP
# loadBalancerClass: ""
# loadBalancerIP: 10.0.0.0
# loadBalancerSourceRanges:
# - 10.0.0.0/8
Expand Down Expand Up @@ -499,6 +501,7 @@ sharding:
expose:
enabled: false
type: ClusterIP
# loadBalancerClass: ""
# loadBalancerIP: 10.0.0.0/8
# loadBalancerSourceRanges:
# - 10.0.0.0/8
Expand Down
Loading