![叢集升級後Gcloud kubernetes nginx無法找到上游主機](https://rvso.com/image/717755/%E5%8F%A2%E9%9B%86%E5%8D%87%E7%B4%9A%E5%BE%8CGcloud%20kubernetes%20nginx%E7%84%A1%E6%B3%95%E6%89%BE%E5%88%B0%E4%B8%8A%E6%B8%B8%E4%B8%BB%E6%A9%9F.png)
我剛剛將叢集和節點升級到 v1.7.12,並成功重新建立了所有 pod,但 nginx pod 除外,它一直失敗並出現以下錯誤:
nginx 2018-02-17T08:38:07.965745644Z nginx: [emerg] host not found in upstream "gunicorn" in /etc/nginx/conf.d/web.conf:8
nginx 2018-02-17T08:38:07.965678149Z 2018/02/17 08:enter code here38:07 [emerg] 1#1: host not found in upstream "gunicorn" in /etc/nginx/conf.d/web.conf:8
我的想法是,我的 nginx pod 反向代理到在叢集升級之前運行的 Gunicorn pod。
我對 Kubernetes 的了解非常有限,因為我不是配置基礎架構的人。
我懷疑我在升級叢集和節點時缺少配置,但我不知道是什麼。
有人能指出我正確的方向嗎?
答案1
所以我想通了。顯然我的gunicorn pod和gunicorn服務有不同的配置。我只是錯過了啟動gunicorn 服務。