<p>How to configure Network Security Group for a load balancer in Azure Kubernetes. Basically, want to restrict incoming external traffic to service for a range of IP Addresses only.</p>

SaiNageswar S
<p>According to the <a href="https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard#restrict-inbound-traffic-to-specific-ip-ranges" rel="nofollow noreferrer">Azure documentation</a> you should be able to specify the IP addresses you want to allow in the <code>spec/loadBalancerSourceRanges</code> field of your <code>Service</code>, such as:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: my-lb-name
spec:
  type: LoadBalancer
  ...
  loadBalancerSourceRanges:
  - 1.2.3.0/16
</code></pre>
