来自图像的openshift new-app用不正确的端口创建服务

发布于 2025-02-12 01:49:19 字数 266 浏览 1 评论 0原文

我正在使用openshift oc new-app从图像创建应用程序。

但是,OC New-App仅使用一个TCP端口而错误地创建关联的OpenShift服务,而不是两个端口。

是否有任何简单的方法可以强制OpenShift new-App在从图像构建时使用两个正确的端口正确创建服务,而不是仅使用一个端口错误地创建服务?

另外,是否还有命令行将额外的端口添加到可以脚本脚本的服务中的额外端口(我知道OC编辑)。 (免责声明..我是OpenShift的新手,还有很多要学习的)

I am using openshift oc new-app to create a app from a image.

However oc new-app is creating the associated openshift service incorrectly with only one tcp port, not the two ports than the application uses.

Is there any simple way to force openshift new-app to correctly create the service with the two correct ports when building from a image rather than incorrectly with only one port ?

Alternatively is there a command line way to add the extra port to the service created that can be scripted (I know about oc edit) ..
(Disclaimer.. I am new to openshift and have lots to learn)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文