当前位置: 首页 > 知识库问答 >
问题:

OpenShift Origin Quickstart错误:getsockopt:没有到VM上主机172.30.0.1的路由

宿鹏程
2023-03-14

我目前正在尝试了解更多关于OpenShift Origin的信息,并在VMWare Fusion上部署一个CentOS VM。我按照 OpenShift 快速入门指南安装并运行了 OpenShift Origin 服务器。但是,当我尝试部署测试应用程序时,在部署过程中出现以下错误。

添加新应用程序时,我还收到以下消息

oc new-app openshift/deployment-example    
--> Found Docker image 1c839d8 (2 years old) from Docker Hub for "openshift/deployment-example"    
    * An image stream will be created as "deployment-example:latest" that will track this image    
    * This image will be deployed in deployment config "deployment-example"    
    * Port 8080/tcp will be load balanced by service "deployment-example"    
      * Other containers can access this service through the hostname "deployment-example"    
    * WARNING: Image "openshift/deployment-example" runs as the 'root' user which may not be permitted by your cluster administrator

--> Creating resources ...
    imagestream "deployment-example" created
    deploymentconfig "deployment-example" created
    service "deployment-example" created
--> Success
    **WARNING: No Docker registry has been configured with the server. Automatic builds and deployments may not function.**

需要做些什么才能在我的VM上成功部署它?我不确定上述警告消息是否与问题有关。

共有1个答案

轩辕庆
2023-03-14

发现我的错误是8443/tcp端口没有打开。那是用

sudo firewall cmd--zone=public--add port=8443/tcp--永久

sudo firewall cmd—重新加载

然后它就开始工作了

 类似资料:
  • 当我尝试从我的容器内连接到另一个容器的端口时,我不成功并得到, 从docker主持人那里我成功了, 如果我检查iptables,我可以看到问题, 所以我添加了以下内容,一切都很好, 我错过什么了吗? 谢谢

  • 我已经部署了一个运行在OpenShift Origin上的grpc服务。这是由OpenShift服务支持的。该服务通过OpenShift路由公开。我正在尝试通过一个服务和路线将集装箱港口(50051)映射到8080港的外部世界,从而使这个吊舱可用。 服务试图公开的映像在其Dockerfile中具有: 路线如下: 服务端口:8080/TCP 目标端口:50051 在DeploymentConfig中

  • 在compute节点上启动的VM实例可以访问除C类IP之外的所有外部internet站点。控制器和计算节点已经根据openstack liberty指南在Ubuntu上成功安装。 VM的接口有: [root@vm3~]#ifconfig eth1链路Encap:Ethernet HWaddr FA:16:3E:57:1B:57 inet Addr:192.168.0.215 BCAST:255.2

  • 有人知道怎么解决这个问题吗?

  • 我尝试使用 JMeter 运行分布式测试,我有 2 个 EC2 实例 主公共 IP: 54.xxx.xx.xx 从属公共 IP: 204.xxx.xxx.xxx 我已经打开了配置中使用的所有必要端口。 我可以从另一个 EC2 对每个 EC2 执行 ping 操作,并且 ping 成功。 但当我尝试启动测试时,服务器失败并返回[No route to host(host unreachable)]。

  • 我将一个Laravel5项目部署到一个共享托管帐户,将应用程序文件放在www文件夹之外,只将公用文件夹放在www文件夹之内。正如这里所解释的,最好的答案是:Laravel4和使用FTP部署应用程序的方法。。。没有3。因为这个文件在Laravel 5中不存在。 现在,当我在控制器内调用public_path()时,我会在www/public之外而不是www/public之外得到类似于我的appfil