Skip to content
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

google: intermediate configuration for load balancing #67

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Nov 26, 2019

In this PR:

  • four components (see below). I was not able to use the generator since there are two proxies component and the template is based on the plural of a component (Instance -> Instances but Proxy -> ProxIES). Same for Ssl and Url (not compliant with the go lint)

Following google documentation:

HTTP(S) load balancer has 3 parts:

Backend configuration (#64 )

A backend service directs incoming traffic to an instance group. You can also use a storage bucket to serve content.
For now, I just implemented instance_group + backend_service + health_check components.

Host and path rules (this PR)

Host and path rules determine how your traffic will be directed. If you don't specify any rules, traffic will be sent to the default backend service.
target_http(s)_proxy, url_map and ssl_certificate (for https)

Frontend configuration

Your IP address, protocol and port. This is the IP to which your client requests will come in to.

More information here

toto

@tormath1 tormath1 self-assigned this Nov 26, 2019
@tormath1 tormath1 added Status: Need review Provider: GCP Issues related to the GCP Provider labels Nov 26, 2019
@tormath1 tormath1 changed the title google: frontend configuration for load balancing google: intermediate configuration for load balancing Nov 26, 2019
@tormath1 tormath1 force-pushed the mt-lb-front branch 2 times, most recently from 2778349 to 9b84c4e Compare November 27, 2019 15:09
Copy link
Member

@xescugc xescugc left a comment

Choose a reason for hiding this comment

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

Ok so, I would prefer to have all the functions on the []Function{} so, it's easy, add a Name which if defined overrides the default one, so you can define the others.

Also, did you regenerate all the resources after the changes on the ComputeURLMap and so?

@tormath1 tormath1 force-pushed the mt-lb-front branch 2 times, most recently from e9fdf83 to 56a5fb7 Compare December 4, 2019 09:51
@tormath1
Copy link
Contributor Author

tormath1 commented Dec 4, 2019

@xescugc I rewrite the template to add more flexibility. Now, we are able to generate all the resources added in this PR :) ready for review !

Copy link
Contributor

@xlr-8 xlr-8 left a comment

Choose a reason for hiding this comment

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

Small note regarding typo due to rephrasing

google/reader_generated.go Outdated Show resolved Hide resolved
google/reader_generated.go Outdated Show resolved Hide resolved
@xescugc
Copy link
Member

xescugc commented Dec 9, 2019

LGTM, RS when @xlr-8 says it.

since we can have different service names and functions name
depending on the Google SDK resource name, we need to be able to
customize this.

If the Google SDK resource is TargetHttpProxy, the service name will be
TargetHttpProxies since the function name will be ListTargetHTTPProxies
in this commit, we added a few new components:
* URLMap
* TargetHTTPProxy
* TargetHTTPSProxy
* SSLCertificate
@tormath1 tormath1 merged commit 79447bd into mt-google-http-lb Dec 10, 2019
@tormath1 tormath1 deleted the mt-lb-front branch December 10, 2019 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Provider: GCP Issues related to the GCP Provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants