创建ConfigMap
<p class="shortdesc">本文主要介绍如何创建ConfigMap。</p>
<section class="section prereq" id="createC__prereq_sxx_mzb_vvb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<p class="p">您已成功创建业务集群,可参考<a class="xref" href="/ssr/help/compute/caas/Operation_Guide.Cluster_Management.worker.create" target="_blank" rel="external noopener">创建业务集群</a>,且集群状态为<strong class="ph b">运行中</strong>。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><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">ConfigMap</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">根据如下信息,创建ConfigMap 。</span>
<div class="itemgroup info">
<table class="table"><caption></caption><colgroup><col style="width:22.935779816513765%"><col style="width:77.06422018348624%"></colgroup><thead class="thead">
<tr class="row">
<th class="entry colsep-1 rowsep-1" id="createC__01__entry__1">
<p class="p"> 配置项 </p>
</th>
<th class="entry colsep-1 rowsep-1" id="createC__01__entry__2">
<p class="p"> 说明 </p>
</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__1 ">
<p class="p">地域</p>
</td>
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__2 ">
<p class="p">选择创建ConfigMap的地域。</p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__1 ">
<p class="p">所属集群</p>
</td>
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__2 ">
<p class="p">选择ConfigMap所属的业务集群。 </p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__1 ">
<p class="p">名称</p>
</td>
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__2 ">
<p class="p">设置ConfigMap的名称。名称长度需为4~24个字符,只能包含小写字母、数字及分隔符(“-“)。必须以小写字母开头,以数字或小写字母结尾。</p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__1 ">
<p class="p">描述</p>
</td>
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__2 ">
<p class="p">设置ConfigMap的描述信息,便于后续统一管理。 </p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__1 ">
<p class="p">配置数据</p>
</td>
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__2 ">
<p class="p">设置配置数据的名称和内容信息,用于不加密自定义配置文件等。</p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__1 ">
<p class="p">配置标签</p>
</td>
<td class="entry colsep-1 rowsep-1" headers="createC__01__entry__2 ">
<p class="p">设置配置标签的名称和内容。</p>
</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"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="ph uicontrol">ConfigMap</span>页面,可以查看到已成功创建的ConfigMap。</p>
</section>
<section class="section postreq" id="createC__postreq_ypj_x1j_vvb"><div class="tasklabel"><h2 class="doc-tairway">后续操作</h2></div>
<p class="p">单击目标ConfigMap<span class="ph uicontrol">名称</span>进入ConfigMap详情页面,可查看到ConfigMap的基础信息、配置数据和配置标签等。</p>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!