Skip to content

Commit

Permalink
add plan-patch for http2 in the cf-lb on gcp
Browse files Browse the repository at this point in the history
- this patch will switch the protocol from https to http2 for the GCP
  load balancer

Co-authored-by: Weyman Fung <weymanf@vmware.com>
Co-authored-by: Greg Cobb <gcobb@vmware.com>
  • Loading branch information
3 people authored and kirederik committed Sep 13, 2021
1 parent d0ceb71 commit 440ef9b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions plan-patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Many of these have additional prep steps or specific downstream bosh deployments
| [restricted-instance-groups-gcp](restricted-instance-groups-gcp/) | Create two seperate instance groups |
| [colocate-gorouter-ssh-proxy-gcp](colocate-gorouter-ssh-proxy-gcp/) | Helpful if you're trying to colocate everything |
| [prometheus-lb-gcp](prometheus-lb-gcp/) | Deploy a dedicated GCP load balancer for your prometheus cluster |
| [http2-lb-gcp](http2-lb-gcp/) | Configure the load balancer backends to use HTTP2 protocol in GCP |
| **VSPHERE** | |
| [cfcr-vsphere](cfcr-vsphere/) | Deploy a CFCR with a single master static IP and the vsphere cloud-provider |
| **OPENSTACK** | |
Expand Down
21 changes: 21 additions & 0 deletions plan-patches/http2-lb-gcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## http2 load balancer for GCP

This is a patch that will enable http2 protocol for the backend services used in the GCP load
balancer.

This will override the existing HTTPS protocol that is configured on the load
balancer. **Be aware** that requests to the loadbalancer will upgrade its connection to http2. If
your gorouter is not up-to-date or does not allow http2 traffic, then the
requests to the gorouter will fail.

To use, please follow the standard plan-patch steps.

```
mkdir your-env && cd your-env
bbl plan --name your-env
cp -r bosh-bootloader/plan-patches/http2-lb-gcp/. .
bbl up
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "google_compute_backend_service" "router-lb-backend-service" {
protocol = "HTTP2"
}

0 comments on commit 440ef9b

Please sign in to comment.