go-ratelimit
by Helm
A Ratelimit Service Helm chart for Kubernetes
About this chart
Helm chart for Global rate limit envoy service
Overview
With this chart you will be able to deploy the Rate Limit Service in a k8s cluster via helm.
Motivation
The first thing we notice when looking at how rate limit works within Envoy is that Envoy expects you to define a Rate Limit Service. This is because Envoy by itself has no mechanism to tell if a request should be let through, or rate limited. To make things even better, Lyft recently released their version of a service that responds to this interface: Rate limit
For more insights of envoy rate limit architecture, Global rate limit Envoy.
Quick Start
NAME_OF_RELEASE="ratelimiter"
helm install --repo https://charts.softonic.io ${NAME_OF_RELEASE} go-ratelimit
Deploy go-ratelimit with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has go-ratelimit on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgo-ratelimit is pinned at v1.0.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply