<p>Is there anyway to filter on source-ip on the kubernetes ingress in GCE? I have tried the ingress.kubernetes.io/whitelist-source-range: but doesnt seems to be working in GCE.</p>

<p>I guess You are trying to use this feature with GCE native controller instead NGINX? This works with NGINX only at the moment.</p>

<p>NGINX Controller configuration: <a href="https://github.com/kubernetes/ingress/blob/master/controllers/nginx/configuration.md" rel="nofollow noreferrer">https://github.com/kubernetes/ingress/blob/master/controllers/nginx/configuration.md</a></p>

<p>Example configuration of ingress :</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: whitelist
  annotations:
    ingress.kubernetes.io/whitelist-source-range: "1.1.1.1/24"
spec:
  rules:
  - host: whitelist.test.net
  http:
    paths:
    - path: /
    backend:
      serviceName: webserver
      servicePort: 80
</code></pre>
