在ingress注释中添加以下配置一直没有生效的状态
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/proxy-connect-timeout: '300s'
nginx.ingress.kubernetes.io/proxy-read-timeout: '300s'
nginx.ingress.kubernetes.io/proxy-send-timeout: '300s'
nginx.ingress.kubernetes.io/rewrite-target: /$2
注意:改注释的value需要number类型,不能加s,否者不生效 正确的配置如下
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/proxy-connect-timeout: '300'
nginx.ingress.kubernetes.io/proxy-read-timeout: '300'
nginx.ingress.kubernetes.io/proxy-send-timeout: '300'
nginx.ingress.kubernetes.io/rewrite-target: /$2
发表评论
共 0 条评论
暂无评论