Azure Kubernetes Service Standard LB Ingress 限制源IP访问

本文介绍了如何在Azure Kubernetes Service (AKS)中使用Standard Load Balancer Ingress来限制来源IP访问。通过设置`loadBalancerSourceRanges`字段,可以控制外部访问服务的IP范围。参照官方文档并查看kubectl服务配置,可以观察到配置的IP范围,并且在AKS节点关联的网络安全组(NSG)中,会自动生成相应的规则以实施这些限制。完成设置后,可以通过测试验证访问控制是否有效。
摘要由CSDN通过智能技术生成

关于AKS 关于负载均衡Ingress 时候,限制源IP范围,基于spec下的loadBalancerSourceRanges 字段,参阅如下:

引用如下的源:

https://v1-16.docs.kubernetes.io/zh/docs/concepts/services-networking/service/#externalname

Kubectl 解释器如下:

[root@kubctl ~]# kubectl explain Service.spec.loadBalancerSourceRanges

KIND: Service

VERSION: v1

FIELD: loadBalancerSourceRanges <[]string>

DESCRIPTION:

 If specified and supported by the platform, this will restrict traffic

 through the cloud-provider load-balancer will be restricted to the

 specified client IPs. This field will be ignored if the cloud-provider does

 not s
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值