部署路由器状态待定

时间:2016-11-01 08:02:08

标签: openshift openshift-origin

通过以下组成,开放式起源,使用ansible中的playbook,建立了环境。

[node]
openshift-master.example.com<br>
openshift-node01.example.com<br>
openshift-node02.example.com<br>
openshift-etcd.example.com<br>


[/etc/ansible/hosts]
[OSEv3:children]
masters
nodes
etcd

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=origin

[masters]
openshift-master.example.com

[etcd]
openshift-etcd.example.com

# host group for nodes, includes region info
[nodes]
openshift-master.example.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
openshift-node01.example.com openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
openshift-node02.example.com openshift_node_labels="{'region': 'primary', 'zone': 'west'}"

在下面的命令中,在openshift中,登录,哦,它已经完成了。

 [login command]
 oc login -u system:admin -n default

路由器中的副本,它是按照以下命令制作的。

 [create router command]
 oc scale dc/router --replicas=2

发生以下事件,并且某个地方无法在路由器中制作副本。

 [create router command]
 Failed scheduling  
 pod (router-2-ievkl) failed to fit in any node fit failure on node (openshift-node01.example.com): CheckServiceAffinity fit failure on node (openshift-node02.example.com): CheckServiceAffinity fit failure on node (openshift-master.example.com): PodFitsHostPorts

就是这种情况,但是如果做对应的话,我能在路由器上制作复制品吗?

1 个答案:

答案 0 :(得分:3)

在干净安装原产地后遇到同样的问题。 取消大师做的事情。 Thnx to lorenzvth7

  

在高级安装期间,openshift_hosted_router_selector和openshift_registry_selector Ansible设置默认设置为region = infra。只有存在与region = infra标签匹配的节点时,才会自动部署默认路由器和注册表。

另外,根据错误主题启动器的情况“ PodFitsHostPorts

  

路由器直接连接到主机上所有接口上的端口80和443。 将路由器限制为端口80/443 可用的主机并且不被其他服务消耗,并使用节点选择器和调度程序配置进行设置。 例如,您可以通过专用基础架构节点来运行路由器等服务来实现这一目标。

所以,这意味着你要重新标记,例如openshift-node01.example.com作为region:infra

相关问题