记录了一些自己在使用ingress所用到的ConfigMap
相关官方文档
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
413 Request Entity Too Large
- nginx-configuration
proxy-body-size: 0
根据实际情况修改大小
API的访问控制
- nginx-configuration
1 | add-headers: ingress-nginx/custom-headers |
custom-headers为自定义ConfigMap名字,命名空间与ingress所在的相同
- custom-headers
1 | Access-Control-Allow-Credentials: true |
四层负载均衡设置
- tcp-services & udp-services
1 | # 端口号: 命名空间/服务:端口 |