Google Cloud Kubernetes Nginx Ingress挂在“创建入口"上. [英] Google Cloud Kubernetes Nginx Ingress hang on "Creating ingress"
问题描述
使用Nginx入口控制器在GCE中创建入口资源时,入口资源将停留在正在创建入口"上.所有自定义注释似乎都丢失了,但是我可以访问入口定义的URL.
When creating an ingress resource in GCE using the Nginx ingress controller, the ingress resource is stuck on "Creating ingress". Any custom annotations appear to be lost, but I can access the URL defined by the ingress.
这可能是什么原因造成的?
What could be causing this?
推荐答案
原来是因为我正在发送注释
This turned out to be because I was sending the annotation
nginx.ingress.kubernetes.io/ssl-redirect: false
代替
nginx.ingress.kubernetes.io/ssl-redirect: "false"
根据> https://github.com/kubernetes/ingress-nginx/issues /1990 ,Nginx控制器仅接受包含"true"或"false"的字符串.通过发送布尔值,GCE挂起了.
According to https://github.com/kubernetes/ingress-nginx/issues/1990, the Nginx controller only accepts strings containing "true" or "false". By sending boolean values, GCE was hanging.
有趣的是,没有错误表明存在问题,我可以访问入口URL,这使调试问题的引用变得很痛苦.
Interestingly there were no errors indicating a problem, and I could access the ingress URL, which made debugging the problem quote painful.
这篇关于Google Cloud Kubernetes Nginx Ingress挂在“创建入口"上.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!