forked from docs/doc-exports
Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
22 lines
3.5 KiB
HTML
22 lines
3.5 KiB
HTML
<a name="cce_10_0959"></a><a name="cce_10_0959"></a>
|
|
|
|
<h1 class="topictitle1">Changing the Default NodeLocal DNSCache Port</h1>
|
|
<div id="body0000002189157281"><div class="p" id="cce_10_0959__p119211141104612">NodeLocal DNSCache defaults to using port 8080 on the host node, but this can cause conflicts with other services sharing the same port. This section describes how to change the default NodeLocal DNSCache port.<div class="caution" id="cce_10_0959__note15220145365811"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="cce_10_0959__en-us_topic_0000001559375002_p19980103895112">You can change the default port of the NodeLocal DNSCache add-on of 1.6.66 or later.</p>
|
|
</div></div>
|
|
</div>
|
|
<ol id="cce_10_0959__ol11421161513465"><li id="cce_10_0959__li330462393220"><span>Log in to the <span id="cce_10_0959__cce_10_0004_ph18314322182">CCE console</span> and click the cluster name to access the cluster console.</span></li><li id="cce_10_0959__li1386019305015"><span>Choose <span class="uicontrol" id="cce_10_0959__uicontrol108619305016"><b>Add-ons</b></span> in the navigation pane, find the <strong id="cce_10_0959__b18861838503">NodeLocal DNSCache</strong> add-on on the right, and click <span class="uicontrol" id="cce_10_0959__uicontrol18612317502"><b>Install</b></span>. If this add-on has been installed in the cluster, click <span class="uicontrol" id="cce_10_0959__uicontrol1017217585497"><b>Edit</b></span>.</span></li><li id="cce_10_0959__li370216714554"><span>On the displayed page, configure parameters and click <strong id="cce_10_0959__b39103317408">Installation Using YAML</strong> in the upper part of the page. If this add-on has been installed in the cluster, click <span class="uicontrol" id="cce_10_0959__uicontrol15924142134013"><b>Edit YAML</b></span>.</span><p><p id="cce_10_0959__p5761238145013"></p>
|
|
<p id="cce_10_0959__p134014491893"></p>
|
|
<div class="note" id="cce_10_0959__note135549109529"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="cce_10_0959__p165541710185217">To simplify configuration, configure other parameters on the console, and then change the port number in the YAML file. For more information about other parameters, see <a href="cce_10_0404.html">NodeLocal DNSCache</a>.</p>
|
|
</div></div>
|
|
</p></li><li id="cce_10_0959__li4421101584620"><span>Configure both parameters to the specified port number, ensuring they have the same value.</span><p><ol type="a" id="cce_10_0959__ol2744114015414"><li id="cce_10_0959__li97441640041">Search for the <strong id="cce_10_0959__b77811035184814">healthPort</strong> parameter and change its value to a specified port number, for example, 8081.<p id="cce_10_0959__p20351101818417"><span><img id="cce_10_0959__image2774151811415" src="en-us_image_0000002516079513.png"></span></p>
|
|
</li><li id="cce_10_0959__li974410401146">Search for the <strong id="cce_10_0959__b797275744814">cluster.local</strong> parameter and change the value of <strong id="cce_10_0959__b12156142712495">port</strong> in the array to the specified port number, for example, 8081.<p id="cce_10_0959__p128754493516"><span><img id="cce_10_0959__image355721515610" src="en-us_image_0000002483959570.png"></span></p>
|
|
</li></ol>
|
|
</p></li><li id="cce_10_0959__li149221052135614"><span>Click <strong id="cce_10_0959__b8459533132912">OK</strong>.</span></li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_10_0359.html">DNS</a></div>
|
|
</div>
|
|
</div>
|
|
|