我尝试使用cli创建一个openshift原型的OpenShift haproxy路由器:
oadm router router-ha --service-account=router --type="haproxy-router" --subdomain="${name}-${namespace}.op37.dev.procempa.com.br" --replicas=2 --selector='region=infra' --selector='zone=default'
但是,路由器没有创建。我在region = infra中有2个节点,错误是:
2 nodes are available: 1 CheckServiceAffinity, 1 MatchNodeSelector, 2 PodFitsHostPorts.
我的openshift起源是:
版
OpenShift Master: v3.7.0 + 7ed6862 Kubernetes大师: v1.7.6 + a08f5eeb62
答案 0 :(得分:0)
好的,让我们来看看,我们需要了解路由器部署的错误,我猜这很可能与节点及其标签有关。您能否运行以下每个命令并将输出添加到您的问题中?
# Get the nodes, showing what labels they have.
oc get nodes -o wide
# Get the recent deployments.
oc get deploy
# For good measure, let's check some status and recent events.
oc status
oc get events
那应该提供很多诊断数据来帮助!