OpenShift Origin 3: "error: router could not be created"
OpenShift Origin 3: "error: router could not be created"
我正尝试按照 https://docs.openshift.com/enterprise/3.0/install_config/install/deploy_router.html#haproxy-router
中的说明创建一个路由器
然而,当我运行:
oadm router router --replicas=1 \
--credentials='/etc/openshift/master/openshift-router.kubeconfig' \
--service-account=router
我收到以下错误:
[root@openshift ~]# oadm router router --replicas=1 \
> --credentials='/etc/openshift/master/openshift-router.kubeconfig' \
> --service-account=router
error: router could not be created; the provided credentials "/etc/openshift/master/openshift-router.kubeconfig" could not be loaded: stat /etc/openshift/master/openshift-router.kubeconfig: no such file or directory
[root@openshift ~]#
有谁知道问题出在哪里,我是如何解决的?
谢谢
您正在使用与 OpenShift 3.1 不完全相同的 OpenShift Origin 1.1。 openshift-router.kubeconfig 在 /etc/origin/master/...
尝试使用 documentation for origin (1.1).
我正尝试按照 https://docs.openshift.com/enterprise/3.0/install_config/install/deploy_router.html#haproxy-router
中的说明创建一个路由器然而,当我运行:
oadm router router --replicas=1 \
--credentials='/etc/openshift/master/openshift-router.kubeconfig' \
--service-account=router
我收到以下错误:
[root@openshift ~]# oadm router router --replicas=1 \
> --credentials='/etc/openshift/master/openshift-router.kubeconfig' \
> --service-account=router
error: router could not be created; the provided credentials "/etc/openshift/master/openshift-router.kubeconfig" could not be loaded: stat /etc/openshift/master/openshift-router.kubeconfig: no such file or directory
[root@openshift ~]#
有谁知道问题出在哪里,我是如何解决的?
谢谢
您正在使用与 OpenShift 3.1 不完全相同的 OpenShift Origin 1.1。 openshift-router.kubeconfig 在 /etc/origin/master/...
尝试使用 documentation for origin (1.1).