Skip to content

GoogleCloudPlatform/gcp-lb-controller-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP loadbalancer controller

build

This controller is for Kubernetes environments and provisions GCP loadbalancer infrastructure for services of type LoadBalancer.

Currently Supported load balancers:

  1. External passthrough network load balancer.

Configuration:

Annotation Description
gcp-lb-controller/hc-port The port used to create health check. If not provided, first port in the
service spec will be used.
gcp-lb-controller/regional-migs Comma separated regional managed instance groups.
These should be in the same region as the cluster resources. If not provided zonal unmanaged instance groups will be created for all nodes in the cluster.
gcp-lb-controller/zonal-migs Map of zonal managed instance groups, for example
"{\"us-central1-a\":\"instance-group-1\"}". These should be in the same region as the cluster resources. If not provided zonal unmanaged instance groups will be created for all nodes in the cluster.
gcp-lb-controller/static-ip-name Static ip address resource name for the load balancer, this needs to be in the
same region as the cluster.

Command line arguments

  1. network: The network name of the instance, this is required.
  2. shared-vpc-project-id: Shared VPC project id. The project id of the instance will be used if not provided.

Build and deploy

  1. Use the Dockerfile to build the image and deploy using the manifests provided in k8s.
  2. Add the label gcp-lb-controller=reconcile to the services to enable provisioning the load balancer using the controller.
  3. Debug logs can be enabled by setting the environment variable RUST_LOG=debug.

Tools:

  1. Rust
  2. kubectl

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0. See LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published