[英]Can build and run image locally. Cannot build and run image via Google Kubernetes Engine (GKE)
From my application's root directory, I can build an image and run it locally. 从应用程序的根目录,我可以构建映像并在本地运行。 When I use the image built via the kubernetes engine, it successfully builds, but the application errors.
当我使用通过kubernetes引擎构建的映像时,它可以成功构建,但是应用程序出错。
The logs above are from kubernete's dashboard, they show the error that occurs when trying to run the application. 上面的日志来自kubernete的仪表板,它们显示了尝试运行应用程序时发生的错误。
I've also changed my local environment to the node/npm version to match the version noted in the logs and the app. 我还将本地环境更改为node / npm版本,以匹配日志和应用程序中注明的版本。 The app runs with no issues locally.
该应用程序在本地运行没有任何问题。
I've only found one other user with a similar issue: https://github.com/GoogleCloudPlatform/cloud-builders/issues/142 so I'm pretty stumped as to what it could be, any suggestions are welcome. 我只发现了另一个有类似问题的用户: https : //github.com/GoogleCloudPlatform/cloud-builders/issues/142,所以我对可能的问题感到很困惑,欢迎提出任何建议。
Also, you should probably try to catch the gulp error in order to understand better what's going wrong. 另外,您可能应该尝试捕获gulp错误,以便更好地了解出了什么问题。 https://medium.com/@boriscoder/catching-errors-on-gulp-js-4682eee2669f
https://medium.com/@boriscoder/catching-errors-on-gulp-js-4682eee2669f
Cheers, Philmod 干杯,菲尔莫德
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.