How to set bandwidth limit per domain on Google Kubernetes Engine

1/23/2019

We are a website builder SaaS platform, where users are building their FREE websites and are connecting their domains.

We would like to set a limit per domain, example 100mb/month, so when that bandwidth limit is hit we can restrict access to that domain with a message like "You have reached your limit".

This limit can be set for example via custom headers in the request for the specific domain or maybe on a Load Balancer's level.

We weren't able to find documentation on that topic, so decided to ask here!

Please help!

Regards, Gev

-- Gev Balyan
google-cloud-platform
google-kubernetes-engine
kubernetes-ingress

1 Answer

1/25/2019

It's possible to use Pulse Virtual Traffic Manager for control the network traffic through your domains. It's in Google Marketplace for deploy directly in your infrastructure.

Also, you can think to use the HTTPs load balancing features in combination with Cloud DNS forwarding and Cloud CDN (caching) for optimize the network traffic and redirections to the different domains.

-- HopsHops
Source: StackOverflow