标签:ingress source whitelist 黑白 名单 nginx io annotations
说明
annotations 只针指定的ingress生效
configmap 全局生效
配置白名单
官网地址
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#whitelist-source-range
只针对当前命名空间的ingress生效
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/24,172.10.0.1
配置黑白名单
annotations:
nginx.ingress.kubectl.io/server-snippet: deny 192.168.1.10;allow all;
标签:ingress,
source,
whitelist,
黑白,
名单,
nginx,
io,
annotations
From: https://blog.51cto.com/yht1990/5889185