<p>I have a cluster on GKE and I want to set a limit for incoming requests, but I cannot find a way to do it using Kong Ingress Controller. I can't find any documentation or info about this specific topic.</p>

Hugo Sartori
<p>Following the steps in this <a href="https://blog.baeke.info/2019/06/15/api-management-with-kong-ingress-controller-on-kubernetes/" rel="nofollow noreferrer">article</a>, I achieved the desired results by adding the rate limit plugin in my kongo ingress. To do so, first, update / create your ingress definition and add the annotations defined below:</p>
<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: func
  namespace: default
  annotations:
    kubernetes.io/ingress.class: kong   # &lt;-- THIS
    plugins.konghq.com: http-ratelimit  # &lt;-- THIS
spec:
...
</code></pre>
<p>After, to finally set the rate-limit, use this definition and apply it in your kubernetes cluster:</p>
<pre><code>apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
  name: http-ratelimit
  namespace: default
config:
  policy: local
  second: 1
plugin: rate-limiting 
</code></pre>
<p>This will create a restriction of 1 request per second in your ingress. If you want anything different, just change the config section with your own configuration. Check the plugin's <a href="https://docs.konghq.com/hub/kong-inc/rate-limiting/" rel="nofollow noreferrer">documentation</a> for all possible configurations.</p>
