使用Nginx入口 Controller 在GCE中创建入口资源时,入口资源将停留在“创建入口”上。所有自定义注释似乎都丢失了,但是我可以访问入口定义的URL。

是什么原因造成的?

nginx - Google Cloud Kubernetes Nginx Ingress卡在 “Creating ingress”上-LMLPHP

最佳答案

原来是因为我正在发送注释

nginx.ingress.kubernetes.io/ssl-redirect: false

代替
nginx.ingress.kubernetes.io/ssl-redirect: "false"

根据https://github.com/kubernetes/ingress-nginx/issues/1990,Nginx Controller 仅接受包含“true”或“false”的字符串。通过发送 bool(boolean) 值,GCE挂起了。

有趣的是,没有错误表明存在问题,并且我可以访问入口URL,这使调试问题的引用变得很痛苦。

关于nginx - Google Cloud Kubernetes Nginx Ingress卡在 “Creating ingress”上,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51072764/

10-12 12:27