1.Ingress 配置文件配置如下不生效,程序一直504 timeout
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "6000s"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "6000s"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "6000s"

  

备注:注意的事该注释的value需要时number类型,不能加s,否则将不生效
 
正确配置如下:
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "6000"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "6000"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "6000"
 

 在ingress中添加proxy-connect-timeout配置超时时间不生效

2.查看容器内是否生效

 在ingress中添加proxy-connect-timeout配置超时时间不生效

 

 

参考连接:
Annotations - NGINX Ingress Controller
https://www.pianshen.com/article/4067366271/
 

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-12-06
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-05
  • 2021-11-08
相关资源
相似解决方案