Load Balancers

To create a service of type LoadBalancer you need to set an annotation to declare the region it should be created in.

As an example, let’s say you want to create a load balancer service that exposes an nginx server to the internet. You would create a service like so:

apiVersion: v1
kind: Service
metadata:
  name: nginx
  labels:
    app: nginx
  annotations:
    load-balancer.gigahatch.cloud/location: EUROPE_CENTRAL_1
spec:
  ports:
    - port: 80
      name: web
  type: LoadBalancer
  selector:
    app: nginx

Notice the load-balancer.gigahatch.cloud/location annotation with the value EUROPE_CENTRAL_1. This is currently the only supported value. If you use an ingress controller, you also have to make sure this annotation is set on the load balancer service the ingress creates.

GKS All prices without guarantee and excluding VAT.
© 2024 Gigahatch - All Right Reserved Terms of Service Privacy Policy