<p>I have deployed the following resources.</p>
<ol>
<li><p>kong in kong namespace</p>
</li>
<li><p>service echo in poc namespace</p>
<p><code>kubectl apply -f https://gist.githubusercontent.com/hbagdi/0d833181239a39172ba70cbec080bdb9/raw/7f46cf1c9e54562e2c23902daace7ac8edc40427/echo-server.yaml -n poc</code></p>
</li>
<li><p>Created an ingress with /foo path in poc namespace.
Note: /foo is mapped to /echo from echo service.</p>
</li>
</ol>
<pre><code>    echo &quot;
    apiVersion: extensions/v1beta1
    kind: Ingress
    metadata:
      name: demo
      namespace: poc
      annotations:
        kubernetes.io/ingress.class: kong
    spec:
      rules:
      - http:
          paths:
          - path: /foo
            backend:
              serviceName: echo
              servicePort: 80
    &quot; | kubectl -n poc apply -f -
</code></pre>
<ol start="4">
<li>Created the kong plugin</li>
</ol>
<pre><code>kind: KongPlugin
metadata:
  name: default.rate-limiting
  namespace: poc
config:
  minute: 3
  policy: local
plugin: rate-limiting&quot; | kubectl apply -f -
</code></pre>
<ol start="5">
<li>Patched the service with the default.rate-limiting
<code>kubectl patch -n poc svc echo -p '{&quot;metadata&quot;:{&quot;annotations&quot;:{&quot;konghq.com/plugins&quot;:</code> <code>&quot;default.rate-limiting&quot;}}}' </code></li>
</ol>
<p>As per above logic, 3 request in a minute should be allowed however rate-limiting is not being applied even for more than 3 requests in a minute.</p>

Rajiv Rai
<p>i not sure which model you are using for Kong with DB or DB less.</p>
<p>First, i would suggest you trying out once <a href="https://github.com/pantsel/konga" rel="nofollow noreferrer">Konga</a> which is a dashboard for Kong to manage instead of managing using files.</p>
<p>Read more at : <a href="https://faun.pub/kong-api-gateway-with-konga-dashboard-ae95b6d1fec7" rel="nofollow noreferrer">https://faun.pub/kong-api-gateway-with-konga-dashboard-ae95b6d1fec7</a></p>
<p>On rate limit, I have faced the same issue with policy type <strong>local</strong> as it's don't use any type of database in the background.</p>
<p>there is open issue on GitHub : <a href="https://github.com/Kong/kong/issues/5311" rel="nofollow noreferrer">https://github.com/Kong/kong/issues/5311</a></p>
<p><a href="https://docs.konghq.com/hub/kong-inc/rate-limiting/#configuration" rel="nofollow noreferrer">https://docs.konghq.com/hub/kong-inc/rate-limiting/#configuration</a></p>
<p>try using the <strong>Redis</strong> once in the background with rate limiting and test a few scenarios changing the request by seconds and minutes.</p>
