简体   繁体   English

如何从 Openshift Online 中的另一个命名空间访问服务?

[英]How can I reach a service from another namespace in Openshift Online?

I need to reach a RabbitMQ service from another namespace in Openshift Online.我需要从 Openshift Online 中的另一个命名空间访问 RabbitMQ 服务。

When I use the following command:当我使用以下命令时:

oc adm pod-network join-projects --to=<project1> <project2> <project3>

I get this error:我收到此错误:

failed to fetch current network plugin info

Is there a way to reach a service from another namespace in Openshift Online?有没有办法从 Openshift Online 中的另一个命名空间访问服务?

Note: The purpose here is not joining projects.注意:这里的目的不是加入项目。 It is just a way we can choose.这只是我们可以选择的一种方式。 The purpose is to reach a service from another namespace.目的是从另一个命名空间访问服务。

Sometimes this error ('failed to fetch current network plugin info') can appear when you are not logged into the oc console.有时,当您未登录 oc 控制台时,可能会出现此错误(“无法获取当前网络插件信息”)。 Try to login in terminal before joining the POD networks, like:在加入 POD 网络之前尝试登录终端,例如:

oc login https://console.openshift.test --token=xxxxxxxxxxx

or just without token with use of the user with password.或者只是不使用带有密码的用户的令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从节点通过 ClusterIP 访问 Openshift 服务 - How can I access the Openshift service through ClusterIP from nodes 如何在OpenShift Online中配置通配符/ catchatch域? - How can I configure wildcard/catchall domains in OpenShift Online? 如何在OpenShift Online的buildConfig中指定Dockerfile构建? - How can I specify Dockerfile build in buildConfig for OpenShift Online? 将Openshift Online应用程序从一个帐户迁移到另一个帐户 - Migrating Openshift Online app from one account to another account 当我的RAILS_ENV设置为开发时,如何强制在OpenShift Online上捆绑安装? - How can I force a bundle install on OpenShift Online when my RAILS_ENV is set to development? 我无法再访问OpenShift Online Starter控制台 - I can no longer access OpenShift Online Starter console 如何从 RedHat Openshift 的不记名令牌中获取用户信息? - How can I get userinfo from the bearer token of RedHat Openshift? 我如何从openshift平台获取access.log - How can i get the access.log from the openshift platform 如何通过OpenShift使用JAVA连接到MongoDB服务器? - How can I connect to MongoDB server using JAVA from OpenShift? 如何在OpenShift中到达process.env.OPENSHIFT_REPO_DIR? - How to reach process.env.OPENSHIFT_REPO_DIR in OpenShift?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM