SaiNageswar S
SaiNageswar S

Reputation: 1336

Kubernetes load balancer Network Security Group

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

Answers (1)

whites11
whites11

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

Related Questions