叢集升級後Gcloud kubernetes nginx無法找到上游主機

叢集升級後Gcloud kubernetes nginx無法找到上游主機

我剛剛將叢集和節點升級到 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 服務。

相關內容