openshift首页进不去
启动openshift时报的错,大意是:
无法为kubelet构造api.Node对象:无法获取节点master.example.com的IP地址:
所以就联想到新装的centos,没有在网卡配置文件中配置固定IP
添加IPADDR=192.*.*.*
IP还跟默认分配的保持不变就好。
重新启动openshift,OK。
异常内容:
I0522 ::59.046046 endpoints_controller.go:] Waiting for pods controller to sync, requeuing service default/kubernetes
E0522 ::59.098098 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098122 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098128 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098134 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098139 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098144 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098337 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098345 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098351 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098355 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098360 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098364 util.go:] Metric for replenishment_controller already registered
E0522 ::59.098368 util.go:] Metric for replenishment_controller already registered
I0522 ::59.172993 endpoints_controller.go:] Waiting for pods controller to sync, requeuing service default/kubernetes
I0522 ::59.276459 endpoints_controller.go:] Waiting for pods controller to sync, requeuing service default/kubernetes
I0522 ::59.289358 start_master.go:] Started Origin Controllers
I0522 ::59.297654 kubelet.go:] Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes
E0522 ::59.308466 kubelet.go:] Unable to construct api.Node object for kubelet: can't get ip address of node master.example.com: lookup master.example.com on 192.168.238.2:53: no such host
I0522 ::59.376810 endpoints_controller.go:] Waiting for pods controller to sync, requeuing service default/kubernetes
I0522 ::00.108732 kubelet.go:] Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes
E0522 ::00.120079 kubelet.go:] Unable to construct api.Node object for kubelet: can't get ip address of node master.example.com: lookup master.example.com on 192.168.238.2:53: no such host
I0522 ::01.720788 kubelet.go:] Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes
E0522 ::01.756366 kubelet.go:] Unable to construct api.Node object for kubelet: can't get ip address of node master.example.com: lookup master.example.com on 192.168.238.2:53: no such host
I0522 ::04.956605 kubelet.go:] Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes
E0522 ::04.965966 kubelet.go:] Unable to construct api.Node object for kubelet: can't get ip address of node master.example.com: lookup master.example.com on 192.168.238.2:53: no such host
^C2018-- ::06.981664 N | osutil: received interrupt signal, shutting down...