-
Couldn't load subscription status.
- Fork 93
Add an overrideable way to name the load balancers so that multiple DSS can be deployed in one VPC #1188
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
base: master
Are you sure you want to change the base?
Add an overrideable way to name the load balancers so that multiple DSS can be deployed in one VPC #1188
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,5 @@ | ||||||
| {{- $cloudProvider := $.Values.global.cloudProvider}} | ||||||
| {{- $cockroachDbLoadbalancerName := default "cockroach-db-external-node" $.Values.cockroachdb.conf.cockroachDbLoadbalancerName }} | ||||||
|
|
||||||
| {{- if $.Values.cockroachdb.enabled }} | ||||||
|
|
||||||
|
|
@@ -12,21 +13,21 @@ metadata: | |||||
| service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" | ||||||
| {{- include (printf "%s-lb-crdb-annotations" $cloudProvider) | ||||||
| (dict | ||||||
| "name" (printf "%s-%s" "cockroach-db-external-node" ( $i | toString) ) | ||||||
| "name" (printf "%s-%s" $cockroachDbLoadbalancerName ( $i | toString)) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's move the default value entirely. This would look something like that :
Suggested change
|
||||||
| "ip" $lb.ip | ||||||
| "subnet" $lb.subnet | ||||||
| "cloudProvider" $cloudProvider | ||||||
| ) | nindent 4 | ||||||
| }} | ||||||
| labels: | ||||||
| app: cockroachdb | ||||||
| name: cockroach-db-external-node-{{$i}} | ||||||
| name: cockroach-db-external-node-{{$i}} | ||||||
| name: {{$cockroachDbLoadbalancerName}}-{{$i}} | ||||||
| name: {{$cockroachDbLoadbalancerName}}-{{$i}} | ||||||
| namespace: default | ||||||
| spec: | ||||||
| {{- include (printf "%s-lb-spec" $cloudProvider) (dict "ip" $lb.ip) | nindent 2}} | ||||||
| ports: | ||||||
| - name: cockroach-db-external-node-{{$i}} | ||||||
| - name: {{$cockroachDbLoadbalancerName}}-{{$i}} | ||||||
| port: 26257 | ||||||
| targetPort: 26257 | ||||||
| publishNotReadyAddresses: true | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -104,6 +104,11 @@ | |||||
| "description": "Load balancers configuration", | ||||||
| "type": "object", | ||||||
| "properties": { | ||||||
| "cockroachDbLoadBalancerId": { | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was expecting it to be part of the object on line 111 as a property |
||||||
| "description": "Optional and AWS only: Load balancer name of this Cockroach DB node. This must be overridden to run multiple DSS instances in a single region. (default: cockroach-db-external-node-X where X is the index of this node)", | ||||||
| "type": "string", | ||||||
| "maxLength": 28 | ||||||
| }, | ||||||
| "cockroachdbNodes": { | ||||||
| "type": "array", | ||||||
| "items": { | ||||||
|
|
@@ -125,6 +130,11 @@ | |||||
| "dssGateway": { | ||||||
| "type": "object", | ||||||
| "properties": { | ||||||
| "loadBalancerId": { | ||||||
| "type": "string", | ||||||
| "description": "Optional and AWS only: Load balancer name of the DSS Gateway. This must be overridden to run multiple DSS instances in a single region. (default: cockroach-db-external-node-X where X is the index)", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My apologies for the inaccurate proposal, here is a small correction:
Suggested change
|
||||||
| "maxLength": 62 | ||||||
| }, | ||||||
| "ip": { | ||||||
| "description": "Public ip or cloud resource name.", | ||||||
| "type": "string" | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.