Files
doc-exports/docs/asm/umn/asm_qs_0008.html
Dong, Qiu Jian ec0b45029f ASM UMN initial version -20240425
Reviewed-by: Kovács, Zoltán <zkovacs@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-09-18 09:02:28 +00:00

36 lines
10 KiB
HTML

<a name="asm_qs_0008"></a><a name="asm_qs_0008"></a>
<h1 class="topictitle1">Preparations</h1>
<div id="body0000001174020931"><p id="asm_qs_0008__p1571615581812">Before creating a grayscale release task, perform the following operations.</p>
<div class="section" id="asm_qs_0008__section7490153910201"><h4 class="sectiontitle">Creating a VPC</h4><p id="asm_qs_0008__asm_qs_0004_p19494141814419">Virtual Private Cloud (VPC) provides a logically isolated, configurable, and manageable virtual network environment, improving resource security and simplifying network deployment.</p>
<ol id="asm_qs_0008__asm_qs_0004_ol82741740448"><li id="asm_qs_0008__asm_qs_0004_li152741740340"><span>Log in to the VPC console.</span></li><li id="asm_qs_0008__asm_qs_0004_li14611134520412"><span>Click <strong id="asm_qs_0008__asm_qs_0004_b031791115375">Create VPC</strong> in the upper right corner.</span></li><li id="asm_qs_0008__asm_qs_0004_li1580653675612"><span>Configure the parameters as prompted and click Create Now.</span></li></ol>
</div>
<div class="section" id="asm_qs_0008__section10825183101419"><h4 class="sectiontitle">Creating a Key Pair</h4><p id="asm_qs_0008__asm_qs_0004_p127631541685">Create a key pair for identity authentication upon remote node login.</p>
<ol id="asm_qs_0008__asm_qs_0004_ol95182416916"><li id="asm_qs_0008__asm_qs_0004_li135185419915"><span>Log in to the Elastic Cloud Server (ECS) console.</span></li><li id="asm_qs_0008__asm_qs_0004_li6979090912"><span>In the navigation pane, choose <strong id="asm_qs_0008__asm_qs_0004_b977687934102415">Key Pair</strong>. On the page displayed, click <strong id="asm_qs_0008__asm_qs_0004_b265386666102415">Create Key Pair</strong> in the upper right corner.</span></li><li id="asm_qs_0008__asm_qs_0004_li13481898915"><span>Enter a key pair name and click <strong id="asm_qs_0008__asm_qs_0004_b1245151613102415">OK</strong>.</span></li><li id="asm_qs_0008__asm_qs_0004_li1546810318812"><span>Manually or automatically download the private key file. The file name is the specified key pair name with a suffix of <strong id="asm_qs_0008__asm_qs_0004_b487791680102415">.pem</strong>. Securely store the private key file. In the dialog box displayed, click <strong id="asm_qs_0008__asm_qs_0004_b77531092102415">OK</strong>.</span><p><div class="note" id="asm_qs_0008__asm_qs_0004_note112941338789"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="asm_qs_0008__asm_qs_0004_p529473819810">For security purposes, a key pair can be downloaded only once. Keep it secure to ensure successful login. </p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="asm_qs_0008__section1731043615145"><h4 class="sectiontitle">Creating a Load Balancer</h4><p id="asm_qs_0008__asm_qs_0004_p147841814101214">A load balancer will be used as the external access entry of a service mesh, which will route the traffic to backend services.</p>
<ol id="asm_qs_0008__asm_qs_0004_ol17538102813129"><li id="asm_qs_0008__asm_qs_0004_li13538182801219"><span>Log in to the Elastic Load Balance (ELB) console.</span></li><li id="asm_qs_0008__asm_qs_0004_li5234133812128"><span>Click Create Elastic Load Balancer in the upper right corner.</span></li><li id="asm_qs_0008__asm_qs_0004_li1964412420127"><span><strong id="asm_qs_0008__asm_qs_0004_b873312561309">VPC</strong> and <strong id="asm_qs_0008__asm_qs_0004_b137331456173010">Subnet</strong>: Select the VPC and subnet created in <a href="asm_qs_0004.html#asm_qs_0004__section1956152937">Creating a VPC</a>, configure other parameters as prompted, and click Create Now.</span></li></ol>
</div>
<div class="section" id="asm_qs_0008__section4238161922215"><a name="asm_qs_0008__section4238161922215"></a><a name="section4238161922215"></a><h4 class="sectiontitle">Creating a Cluster</h4><ol id="asm_qs_0008__asm_qs_0004_ol730511317187"><li id="asm_qs_0008__asm_qs_0004_li942525917186"><span>Log in to the CCE console.</span></li><li id="asm_qs_0008__asm_qs_0004_li1920092101911"><span>Then, click <strong id="asm_qs_0008__asm_qs_0004_b999719593019">Create CCE Cluster</strong> in the upper right corner.</span></li><li id="asm_qs_0008__asm_qs_0004_li03456151153"><span>Configure the following parameters:</span><p><ul id="asm_qs_0008__asm_qs_0004_ul113451715759"><li id="asm_qs_0008__asm_qs_0004_li234517151855"><strong id="asm_qs_0008__asm_qs_0004_b8226201014347">Cluster Name</strong>: Enter a cluster name, for example, <strong id="asm_qs_0008__asm_qs_0004_b52321710103417">cluster-test</strong>.</li><li id="asm_qs_0008__asm_qs_0004_li1934519158512"><strong id="asm_qs_0008__asm_qs_0004_b1029572356102415">VPC</strong> and <strong id="asm_qs_0008__asm_qs_0004_b1183667889102415">Subnet</strong>: Select the VPC and subnet created in <a href="asm_qs_0004.html#asm_qs_0004__section1956152937">Creating a VPC</a>.</li></ul>
<p id="asm_qs_0008__asm_qs_0004_p192321213161715">Retain the default settings of other parameters.</p>
</p></li><li id="asm_qs_0008__asm_qs_0004_li1435415411016"><span>Click <strong id="asm_qs_0008__asm_qs_0004_b102799354192">Next: Select Add-on</strong>.</span></li><li id="asm_qs_0008__asm_qs_0004_li3384181011225"><span>Click <span class="uicontrol" id="asm_qs_0008__asm_qs_0004_uicontrol1525412445347"><b>Next: Confirm</b></span>. Read the product constraints and select <span class="uicontrol" id="asm_qs_0008__asm_qs_0004_uicontrol1825415448347"><b>I am aware of the above limitations</b></span>. Review the configured parameters and specifications.</span></li><li id="asm_qs_0008__asm_qs_0004_li28281540151617"><span><span class="uicontrol" id="asm_qs_0008__asm_qs_0004_uicontrol1958234619347"><b>Submit</b></span> the order.</span><p><p id="asm_qs_0008__asm_qs_0004_p109404516228">It takes about 6 to 10 minutes to create a cluster. You can click <span class="uicontrol" id="asm_qs_0008__asm_qs_0004_uicontrol749644412102415"><b>Back to Cluster List</b></span> to perform other operations on the cluster or click <span class="uicontrol" id="asm_qs_0008__asm_qs_0004_uicontrol1320074875102415"><b>Go to Cluster Events</b></span> to view the cluster details.</p>
</p></li></ol>
</div>
<div class="section" id="asm_qs_0008__section496120305565"><a name="asm_qs_0008__section496120305565"></a><a name="section496120305565"></a><h4 class="sectiontitle">Creating a Workload and a Service</h4><ol id="asm_qs_0008__asm_qs_0004_ol175451816131912"><li id="asm_qs_0008__asm_qs_0004_li291852552612"><span>Log in to the CCE console and click the cluster name to access the cluster console.</span></li><li id="asm_qs_0008__asm_qs_0004_li185451716161918"><span>Choose <strong id="asm_qs_0008__asm_qs_0004_b10284171117170">Workloads</strong> &gt; <strong id="asm_qs_0008__asm_qs_0004_b11626181451718">Deployments</strong>. In the the upper right corner, click <strong id="asm_qs_0008__asm_qs_0004_b19699182821711">Create Workload</strong>.</span></li><li id="asm_qs_0008__asm_qs_0004_li1954512163198"><span>Create a workload and a Service by referring to <em id="asm_qs_0008__asm_qs_0004_i319712510263">CCE User Guide</em>.</span></li></ol>
</div>
<div class="section" id="asm_qs_0008__section1622611472148"><h4 class="sectiontitle">Creating a Service Mesh</h4><ol id="asm_qs_0008__ol8462155622013"><li id="asm_qs_0008__li08894301545"><span>Log in to the ASM console and click <strong id="asm_qs_0008__b527418244454">Create Mesh</strong>.</span></li><li id="asm_qs_0008__li142581327143920"><span>Select the cluster named <strong id="asm_qs_0008__b511616151894">cluster-test</strong> created in <a href="#asm_qs_0008__section4238161922215">Creating a Cluster</a> and select nodes on which the Istio control plane is installed. Two or more nodes in different AZs are recommended.</span></li><li id="asm_qs_0008__li25107406712"><span>Configure observability parameters as required.</span></li><li id="asm_qs_0008__li1039935410115"><span>Click <strong id="asm_qs_0008__b19455643172611">Show Advanced Settings</strong>. In <strong id="asm_qs_0008__b423612271099">Namespace Injection Settings</strong>, select the namespace named <strong id="asm_qs_0008__b1924213271594">default</strong> and enable <strong id="asm_qs_0008__b343652201011">Restart Existing Services</strong>. Configure other parameters as required.</span></li></ol><ol start="5" id="asm_qs_0008__ol10550162514289"><li id="asm_qs_0008__li12863143972714"><span>Review the service mesh configuration in <strong id="asm_qs_0008__b695649305102419">Configuration List</strong> on the right of the page and click <strong id="asm_qs_0008__b1496151369102419">Submit</strong>.</span><p><p id="asm_qs_0008__p101951040112716">It takes about 1 to 3 minutes to create a service mesh. If the service mesh status changes from <strong id="asm_qs_0008__b20220024121310">Installing</strong> to <strong id="asm_qs_0008__b1220172411135">Running</strong>, the service mesh is successfully created.</p>
</p></li></ol>
</div>
<div class="section" id="asm_qs_0008__section3985171219376"><h4 class="sectiontitle">Diagnosing Configurations</h4><p id="asm_qs_0008__p633318561419">ASM diagnoses all services in a managed cluster. Grayscale release can be performed only for services that are diagnosed as normal.</p>
<ol id="asm_qs_0008__ol1893163619378"><li id="asm_qs_0008__li5931336153712"><span>Log in to the ASM console, click the service mesh named <strong id="asm_qs_0008__b162891137155">asmtest</strong> to access its details page.</span></li><li id="asm_qs_0008__li8361322193814"><span>In the navigation pane, choose <strong id="asm_qs_0008__b2138025274102419">Service Management</strong>, select <strong id="asm_qs_0008__b764588529102419">Namespace: default</strong>, and view the configuration diagnosis result of <strong id="asm_qs_0008__b1266133687102419">servicetest</strong>.</span></li><li id="asm_qs_0008__li5759205224013"><span>If <strong id="asm_qs_0008__b16748134191718">Abnormal</strong> is displayed, click <strong id="asm_qs_0008__b833614294102419">Fix</strong> to fix the issue.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="asm_qs_0006.html">Configurable Grayscale Release</a></div>
</div>
</div>