This controller is for Kubernetes environments and provisions GCP loadbalancer infrastructure for services of type LoadBalancer
.
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. |
network
: The network name of the instance, this is required.shared-vpc-project-id
: Shared VPC project id. The project id of the instance will be used if not provided.
- Use the
Dockerfile
to build the image and deploy using the manifests provided ink8s
. - Add the label
gcp-lb-controller=reconcile
to the services to enable provisioning the load balancer using the controller. - Debug logs can be enabled by setting the environment variable
RUST_LOG=debug
.
- Rust
- kubectl
See CONTRIBUTING.md
for details.
Apache 2.0. See LICENSE
for details.
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.