创建Ingress

<p class="shortdesc">对于需要暴露到公网的应用,您可以采用Ingress方式进行通信。本文主要介绍如何创建Ingress。</p> <section class="section prereq" id="createI__prereq_hjj_shj_2sb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div> <p class="p">您已成功创建Service,可参考<a class="xref" href="/ssr/help/compute/caas/Operation_Guide.Network_management.service.create" target="_blank" rel="external noopener">创建Service</a>。</p> </section> <section id="createI__steps_dtt_qdn_fvb"><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps" id="createI__steps_dtt_qdn_fvb"><li class="li step stepexpand"> <span class="ph cmd">登录<a class="xref" href="https://www.ocftcloud.com/console/caas/overview" target="_blank" rel="external noopener">容器服务CaaS控制台</a>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击左侧导航栏<span class="ph menucascade"><span class="ph uicontrol">网络管理</span><abbr> > </abbr><span class="ph uicontrol">Ingress</span></span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">选择目标地域,单击页面右上角的<span class="ph uicontrol">创建</span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">根据如下信息,创建Ingress。</span> <div class="itemgroup info"> <table class="table" id="createI__table_ljv_tx4_jsb"><caption></caption><colgroup><col style="width:37.87878787878788%"><col style="width:62.121212121212125%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry colsep-1 rowsep-1" id="createI__table_ljv_tx4_jsb__entry__1"> <p class="p"> 配置项 </p> </th> <th class="entry colsep-1 rowsep-1" id="createI__table_ljv_tx4_jsb__entry__2"> <p class="p"> 说明 </p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__1 "> <p class="p">地域</p> </td> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__2 "> <p class="p">选择创建Ingress的地域。</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__1 "> <p class="p">所属集群</p> </td> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__2 "> <p class="p">选择Ingress所属的业务集群。</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__1 "> <p class="p">Ingress名称</p> </td> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__2 "> <p class="p">设置Ingress名称。</p> <div class="note note note_note"><span class="note__title">说明:</span> 名称长度需为4~24个字符,只能包含小写字母、数字及分隔符(“-“)。必须以小写字母开头,以数字或小写字母结尾。</div> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__1 "> <p class="p">域名</p> </td> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__2 "> <p class="p">设置负载均衡服务的域名地址。</p> <div class="note note note_note"><span class="note__title">说明:</span> 您需自行申请,并确保所填域名能解析到所选负载均衡实例的服务地址。</div> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__1 "> <p class="p">路由配置</p> </td> <td class="entry colsep-1 rowsep-1" headers="createI__table_ljv_tx4_jsb__entry__2 "> <p class="p">可以同时为同一集群下的多个服务配置不同的映射URL。</p> <ul class="ul" id="createI__ul_tsn_42p_2sb"> <li class="li"> <span class="ph uicontrol">映射URL</span>:配置服务在域名下的访问路径,由用户自定义。</li> <li class="li"> <span class="ph uicontrol">服务名称</span>:选择需要创建Ingress负载的服务。</li> <li class="li"> <span class="ph uicontrol">服务端口</span>:选择您的目标服务端口。</li> </ul> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">创建</span>。</span> </li></ol></section> <section class="section result" id="createI__result_yjz_yxr_fvb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div> <p class="p">在<span class="keyword wintitle">Ingress负载</span>页面,可以看到已成功创建的Ingress。</p> </section>
以上内容是否解决了您的问题?
请补全提交信息!
联系我们

电话咨询

400-151-8800

邮件咨询

fincloud@ocft.com

在线客服

工单支持

解决云产品相关技术问题