Vikki
Vikki

Reputation: 11

how to add entry in ingress-nginx conf file using helm chart

Want to add the below entry in ingress-nginx conf file:

limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m;

nginx.conf should look like:

limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m;

  server {
  # ...
   location /login.html {
       limit_req zone=one;
  # ...
  }

}

Upvotes: 1

Views: 1440

Answers (1)

clxoid
clxoid

Reputation: 2795

I am not sure why you want to do it via helm chart, anyway there are three ways to customize NGINX ingress:

  1. ConfigMap: using a Configmap to set global configurations in NGINX.
  2. Annotations: use this if you want a specific configuration for a particular Ingress rule.
  3. Custom template: when more specific settings are required, like open_file_cache, adjust listen options as rcvbuf or when is not possible to change the configuration through the ConfigMap.

Upvotes: 1

Related Questions