Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在openshift v3中使用自定义域_Openshift - Fatal编程技术网

在openshift v3中使用自定义域

在openshift v3中使用自定义域,openshift,Openshift,我一直在尝试使用Openshift Online v3来托管一个web应用程序。它适用于red hat提供的域,但我无法使路由工作,以使其在任何其他域上工作。我得到的只是: 申请表不可用 应用程序当前未在此终结点上为请求提供服务。它可能尚未启动或仍在启动 您看到此页面的可能原因: The host doesn't exist. Make sure the hostname was typed correctly and that a route matching this hostname ex

我一直在尝试使用Openshift Online v3来托管一个web应用程序。它适用于red hat提供的域,但我无法使路由工作,以使其在任何其他域上工作。我得到的只是:

申请表不可用

应用程序当前未在此终结点上为请求提供服务。它可能尚未启动或仍在启动

您看到此页面的可能原因:

The host doesn't exist. Make sure the hostname was typed correctly and that a route matching this hostname exists.
The host exists, but doesn't have a matching path. Check if the URL path was typed correctly and that the route was created using the desired path.
Route and path matches, but all pods are down. Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
有人知道如何在Openshift v3中创建自定义域吗?

看看这些


与OpenShift Online Developer Preview一样,GA free不支持自定义域。自定义域仅在完全付费层可用时可用。在此期间,唯一的选择是在前面使用代理。一个选项是使用Cloudflare作为代理。

步骤1:在openshift v3控制台中创建两个路由。一个由
openshift(*.openshiftaps.com)
提供的默认路由,并创建另一个以主机名为域名的路由

步骤2:转到域注册器并为您的域添加一条
CNAME
记录,该记录指向
*.openshiftaps.com


等待添加的
CNAME
生效并从浏览器访问您的域名,现在应该可以正确加载页面。

对于初学者(免费)计划,您可以尝试隐藏重定向URL。一些DNS提供商提供此类服务

可能的副本供参考:我已经这样做了,并将域设置为指向我的站点(虽然我的服务未命名为
frontend
,这应该是无关紧要的),但我得到了错误(仅在自定义域上,而不是红帽域)。您使用了什么类型的证书?你能让它与letsencrypt一起工作吗?我试图安装由letsencrypt生成的证书,但openshift总是抱怨证书的格式。我无法让letsencrypt工作。所以,我现在搬到了cloudflare。这样我就不会得到证书错误。我也没有在openshift上获得任何letsencrypt证书。但几乎:-)如果你感兴趣,我现在发现的是:实际上,这篇文章应该被标记为解决方案。@agm,我可以知道如何在openshift中创建路线吗?在撰写本文时是这样的,但从那时起,Pro计划已经可用,如果接受的答案能够帮助我们设置路线,那就太好了。谢谢。我在哪里可以看到如何为初学者层使用前面的代理?我有同样的问题。我如何使用Cloudflare作为前面的代理?!创建一个关于使用Cloudflare的特定问题的新问题。但是,我不能百分之百确定你如何做到这一点。过去做过这件事的人都没有解释过他们是怎么做的,所以不知道第一手资料。
$ oc create route edge --service=frontend \
    --cert=${MASTER_CONFIG_DIR}/ca.crt \
    --key=${MASTER_CONFIG_DIR}/ca.key \
    --ca-cert=${MASTER_CONFIG_DIR}/ca.crt \
    --hostname=www.example.com