<p>I have received a public ip address for my kubernetes service which i can configure as a loadbalancer ip in my NGINX ingress. This public ip address can be accessed from public internet.</p>

<p>Is there a way or some configuration through which i can make these services accessible only from my client network in kubernetes?</p>

<p>With Kubernetes Nginx Ingress it is as simple as setting an annotation on your ingress object like :</p>

<pre><code>kind: Ingress
metadata:
  name: my-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/whitelist-source-range: '8.8.8.8/32'
</code></pre>

<p><a href="https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/annotations.md#whitelist-source-range" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/annotations.md#whitelist-source-range</a></p>
