使用OpenShift V3使用自定义域



我一直在尝试使用OpenShift在线V3托管Web应用程序。它可以在红色帽子提供的域上工作,但是我无法获得路由以使其在任何其他域上工作。我得到的是:

应用程序不可用

该应用程序当前在此端点上不服务请求。它可能尚未启动或仍在开始。

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

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中进行自定义域?

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

步骤2:转到域注册商,并为您的域中添加CNAME记录,该记录指向*.openshiftapps.com

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

与OpenShift在线开发人员预览一样,GA Free OpenShift在线入门层不支持自定义域。只有在有全额付费层可用时,自定义域才能可用。过渡期间唯一的选择是在前面使用代理。一种选择是将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

对于启动器(免费(计划,您可以尝试隐藏的重定向URL。一些DNS提供商提供此类服务。

最新更新