Helm3 入口控制器位置被拒绝,原因:格式无效 (namespace/name)

Helm3 ingress controller Location denied, reason: invalid format (namespace/name)

我正在使用 helm3 在 kubernetes 中部署一个基于 PHP 的应用程序。我正在使用以下版本的入口控制器。我收到下面提到的错误。即使在所需的命名空间中有秘密,它也会给出此错误。当我使用 "kubectl apply -f yaml" 进行部署时,它工作得很好。 Nginx 控制器支持带有此注释 "nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" 的 HTTPS 后端,但不知何故无法识别,如错误所示。有人可以帮忙吗?

NGINX Ingress controller
  Release:       0.30.0
  Build:         git-7e65b90c4
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.17.8

Nginx 控制器错误

W0413 17:30:53.061666       6 main.go:60] Protocol "HTTPS" is not a valid value for the backend-protocol annotation. Using HTTP as protocol
W0413 17:30:56.382073       6 controller.go:1105] Error getting SSL certificate "tls-test/php-tls-secret": local SSL certificate tls-test/php-tls-secret was not found. Using default certificate
E0413 17:19:32.942187       6 annotations.go:200] error reading ProxySSL annotation in Ingress tls-test/abc-demo: Location denied, reason: invalid format (namespace/name) found in "abc-tls-secret

Values.yaml

  annotations:
    nginx.ingress.kubernetes.io/proxy-ssl-secret: |
      "tls-test/abc-tls-secret"
    nginx.ingress.kubernetes.io/auth-tls-secret: |
       "tls-test/php-tls-secret"
    nginx.ingress.kubernetes.io/backend-protocol: |
      "HTTPS"
nginx.ingress.kubernetes.io/backend-protocol: |
  "HTTPS"

不指定HTTPSbackend-protocol,它指定"HTTPS"\nbackned-protocol

nginx.ingress.kubernetes.io/backend-protocol: HTTPS

是正确的设置,不仅因为它删除了由 yaml 管道运算符引起的换行符,而且还删除了管道和文字 " 字符之间的双引号


至于错误消息,再清楚不过了:删除名称空间限定符,因为没有任何结果可以让 Ingress 资源查询除创建它所在的名称空间之外的任何名称空间