forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
24 lines
5.8 KiB
HTML
24 lines
5.8 KiB
HTML
<a name="cce_bestpractice_10027"></a><a name="cce_bestpractice_10027"></a>
|
|
|
|
<h1 class="topictitle1">Implementing High Availability for Add-ons in CCE</h1>
|
|
<div id="body0000001883499129"><div class="section" id="cce_bestpractice_10027__section176031336103011"><h4 class="sectiontitle">Application Scenarios</h4><p id="cce_bestpractice_10027__p10914193083011">CCE offers various add-ons that enhance the cloud native capabilities of clusters. These add-ons include features like container scheduling and elasticity, cloud native observability, container networking, storage, and security. Helm charts are used to deploy these add-ons. Workload pods of the add-ons are deployed on worker nodes within the clusters.</p>
|
|
<p id="cce_bestpractice_10027__p1191483033010">As add-ons have become more popular, their stability and reliability have become essential requirements. By default, CCE implements a policy for add-on deployment where worker nodes have a hard anti-affinity configuration, and AZs have a soft anti-affinity configuration. This section explains how to enhance the CCE add-on scheduling policy, allowing you to customize the deployment policy according to your requirements.</p>
|
|
</div>
|
|
<div class="section" id="cce_bestpractice_10027__section39440549304"><h4 class="sectiontitle">Viewing the Scheduling Policy of an Add-on</h4><p id="cce_bestpractice_10027__p78820197315">An add-on typically includes Deployments and daemon processes. By default, daemon processes are deployed on all nodes, while Deployments are deployed in multi-instance mode for HA scenarios.</p>
|
|
<p id="cce_bestpractice_10027__p185521780310">Take the CoreDNS add-on as an example. Two pods are deployed for this add-on by default, and multi-AZ deployment is in the preferred mode. The scheduling policy is hard anti-affinity for nodes and soft anti-affinity for AZs. As a result, to ensure that all pods run smoothly, the cluster requires two nodes. The Deployment pods of the add-on are scheduled to nodes in different AZs. However, if the nodes in the cluster are not in multiple AZs, the add-on pods will be scheduled to different nodes in a single AZ.</p>
|
|
</div>
|
|
<div class="section" id="cce_bestpractice_10027__section96909285376"><h4 class="sectiontitle">Creating Nodes in Different AZs for a Cluster</h4><ol id="cce_bestpractice_10027__ol1329512154418"><li id="cce_bestpractice_10027__li7626452063"><span>Log in to the CCE console.</span></li><li id="cce_bestpractice_10027__li1353715161746"><span>In the navigation pane, choose <strong id="cce_bestpractice_10027__b108041956124713">Clusters</strong>. Click the target cluster name to access its details page.</span></li><li id="cce_bestpractice_10027__li559185344511"><span>In the navigation pane, choose <strong id="cce_bestpractice_10027__b156841954819">Nodes</strong>, click the <strong id="cce_bestpractice_10027__b0681619154816">Nodes</strong> tab, and click <strong id="cce_bestpractice_10027__b19713192488">Create Node</strong> in the upper right corner.</span></li><li id="cce_bestpractice_10027__li178653514531"><span>On the page displayed, select an AZ for the node.</span></li><li id="cce_bestpractice_10027__li842219314468"><span>Configure other mandatory parameters following instructions to complete the creation.</span></li></ol>
|
|
<p id="cce_bestpractice_10027__p10857162484717">To create nodes in different AZs, you can simply repeat the previous steps. Alternatively, you can create multiple node pools, associate them with different AZ flavors, and increase the number of nodes in each pool to achieve the same result.</p>
|
|
</div>
|
|
<div class="section" id="cce_bestpractice_10027__section85249243493"><h4 class="sectiontitle">Configuring the AZ Anti-affinity Scheduling Policy for the Add-on</h4><p id="cce_bestpractice_10027__p18974123817490">By default, the add-on scheduling policy can handle single-node faults. However, if your services require a higher SLA, you can create nodes with different AZ specifications on the node pool page. Then, set the multi-AZ deployment mode of the add-on scheduling policy to the required mode.</p>
|
|
<p id="cce_bestpractice_10027__p17148202014500">This section uses the CoreDNS add-on as an example to describe how to configure the multi-AZ deployment policy for an add-on.</p>
|
|
<ol id="cce_bestpractice_10027__ol18563184224912"><li id="cce_bestpractice_10027__li12474071509"><span>Log in to the CCE console and click the cluster name to access the cluster console.</span></li><li id="cce_bestpractice_10027__li13183153352515"><span>In the navigation tree, choose <strong id="cce_bestpractice_10027__b16743735726"><span id="cce_bestpractice_10027__text77103384818">Add-ons</span></strong>. In the right pane, locate <strong id="cce_bestpractice_10027__b1275921593017">CoreDNS</strong> and click <span class="uicontrol" id="cce_bestpractice_10027__uicontrol1661512535586"><b>Edit</b></span>.</span></li><li id="cce_bestpractice_10027__li1617653171818"><span>In the window that slides out from the right, set <strong id="cce_bestpractice_10027__b135082001319">Multi AZ</strong> to <strong id="cce_bestpractice_10027__b641128163119">Required</strong> and click <strong id="cce_bestpractice_10027__b20436725123111">Install</strong>.</span></li><li id="cce_bestpractice_10027__li11210155235217"><span>Choose <strong id="cce_bestpractice_10027__b0608153963218">Workload</strong>, click the <strong id="cce_bestpractice_10027__b67431171348">Deployments</strong> tab, and view the CoreDNS pods. Select the <strong id="cce_bestpractice_10027__b122811334183317">kube-system</strong> namespace to view the pod distribution of the add-on.</span></li><li id="cce_bestpractice_10027__li187787418554"><span>View that the Deployment pods of the add-on has been allocated to nodes in two AZs.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_bestpractice_0323.html">Disaster Recovery</a></div>
|
|
</div>
|
|
</div>
|
|
|