Skip to content

70 load balancer #86

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 32 commits into from
Feb 15, 2021
Merged

70 load balancer #86

merged 32 commits into from
Feb 15, 2021

Conversation

LimKianAn
Copy link
Contributor

@LimKianAn LimKianAn commented Feb 10, 2021

  • Service LoadBalancer is created/deleted alongside Postgres.
  • Endpoints are correctly picked up through the labels.
  • nextFreePort() in lbmanager.go works.

@majst01 @eberlep Please comment if the direction is correct.

@majst01
Copy link
Contributor

majst01 commented Feb 11, 2021

LGTM

@LimKianAn LimKianAn requested a review from eberlep February 12, 2021 08:37
@LimKianAn LimKianAn changed the title WIP: 70 load balancer 70 load balancer Feb 12, 2021
@LimKianAn LimKianAn changed the title 70 load balancer WIP: 70 load balancer Feb 12, 2021
@@ -136,6 +138,14 @@ type PostgresStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
Description string `json:"description,omitempty"`

LBSocket LBSocket `json:"lbSocket,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer Socket instead of LBSocket

@LimKianAn LimKianAn changed the title WIP: 70 load balancer 70 load balancer Feb 14, 2021
# loadBalancerIP defines the load-balancer IP of postgres in this cluster
loadBalancerIP: "172.0.0.1"
# portRangeStart deinfes the start of the port range of services LoadBalancer
portRangeStart: 31767
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which ports to use as defaults?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@majst01 what do you think?

@@ -115,6 +115,20 @@ func (m *OperatorManager) IsOperatorDeletable(ctx context.Context, namespace str
m.Log.Info("operator is deletable")
return true, nil
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add TODO to #83

@LimKianAn LimKianAn requested a review from eberlep February 15, 2021 13:11
@eberlep eberlep merged commit ba05c3c into main Feb 15, 2021
@eberlep eberlep deleted the 70-load-balancer branch February 15, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants