<p>I have 2 kubernetes clusters on digitalocean. One cluster has nginx installed via helm:</p>
<pre><code>helm install nginx bitnami/nginx
</code></pre>
<p>I need to &quot;whitelist&quot; the other cluster IP address. So basically one cluster can receive incoming calls to an endpoint from a specific cluster.<br/></p>
<p>I don't know how to configure the helm values.yaml file generated. Normally with nginx we can use:</p>
<pre><code>whitelist-source-range
</code></pre>
<p>But the helm chart i don't know how to do it.<br/>
thanks</p>

YoussHark
<p>Whitelist-source-range is an <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#whitelist-source-range" rel="nofollow noreferrer">annotation</a> that can be added to an Ingress object, for example:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: whitelist
  annotations:
    ingress.kubernetes.io/whitelist-source-range: &quot;1.1.1.1/24&quot;
spec:
  rules:
  - host: whitelist.test.net
  http:
    paths:
    - path: /
    backend:
      serviceName: webserver
      servicePort: 80
</code></pre>
<p>You may also need to change <code>service.externalTrafficPolicy</code> to <code>Local</code></p>
