Skip to main content
Annotations are a way to add custom, non-identifiable metadata to objects. They configure additional behavior for Load Balancers service in Kubernetes clusters beyond the standard configuration offerings. Learn more about annotations in the official Kubernetes documentation. The load balancer is configured through annotations with some fallbacks to the configuration file for default values. All annotations use the loadbalancer.gcore.com/ prefix. Add annotations via the command line (kubectl) or the Kubernetes service manifest using the annotations field:

Available annotations

The following annotations apply to Load Balancers created in Gcore Managed Kubernetes.

Load balancer configuration

IP address configuration

Listener configuration

Pool configuration

Logging configuration

To enable pushing logs to Logging as a Service, both logging-topic-name and logging-destination-region-id annotations must be set.

DDoS protection

Examples

DDoS protection profile

To assign an Advanced DDoS Protection profile to the cluster, add the ddos-profile annotation:
Replace the sample values (65, 272, and 40) with the appropriate values for the project.

Logging configuration

To enable logging for the cluster, add both logging annotations:
Replace my-logs and 15 with the appropriate LaaS topic name and destination region ID for the project.

Internal load balancer with floating IP

To create an internal load balancer with automatic floating IP assignment: