<p>I have multiple ingresses that I want to attach the same IP list as a whitelist-source.
I can't use this list in the ConfigMap for the ingress-controller as it serves other ingresses as well. What would be a way to do this?</p>

<p><em>Updated answer for the updated question:</em></p>

<p>Yes, you can apply it to a single 'Ingress' by using the <code>nginx.ingress.kubernetes.io/whitelist-source-range</code> annotation. For example:</p>

<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: ingress-myservice
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/whitelist-source-range: "CIDR1,CIDR2,CIDR3"
spec:
  rules:
...
</code></pre>

<p><em>Original answer for the original question:</em></p>

<p>Yes, you can. Essentially, the 'Ingresses' will use the same ingress controller as long as they have the ingress controller annotation. For example, for an Nginx ingress controller, an Ingress would look something like this:</p>

<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: ingress-myservice
  annotations:
    kubernetes.io/ingress.class: "nginx"
spec:
  rules:
...
</code></pre>

<p>Then on the ConfigMap you can add something like this:</p>

<pre><code>data:
  ...
  whitelist-source-range: "CIDR1,CIDR2,CIDR3"
  ...
</code></pre>
