ingress 配置
for-forward-for
The client IP address will be set based on the use of PROXY protocol or from the X-Forwarded-For header value when use-forwarded-headers is enabled.
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-forwarded-headers
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#forwarded-for-header
1
2
3
4
5
6
7
8
|
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: srv-bff-op-center
annotations:
nginx.ingress.kubernetes.io/forwarded-for-header: "X-Forwarded-For"
kubernetes.io/ingress.class: "nginx"
|