Reputation: 1336
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.
Upvotes: 1
Views: 473
Reputation: 13260
According to the Azure documentation you should be able to specify the IP addresses you want to allow in the spec/loadBalancerSourceRanges
field of your Service
, such as:
apiVersion: v1
kind: Service
metadata:
name: my-lb-name
spec:
type: LoadBalancer
...
loadBalancerSourceRanges:
- 1.2.3.0/16
Upvotes: 2