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>
181 lines
23 KiB
HTML
181 lines
23 KiB
HTML
<a name="cce_10_0730"></a><a name="cce_10_0730"></a>
|
|
|
|
<h1 class="topictitle1">Configuring Timeout for a LoadBalancer Ingress</h1>
|
|
<div id="body0000001629969945"><p id="cce_10_0730__p17862192012281">LoadBalancer ingresses support the following timeout settings:</p>
|
|
<ul id="cce_10_0730__ul18999193312816"><li id="cce_10_0730__li69991331588">Idle timeout setting for client connections: maximum duration for keeping a connection when no client request is received. If no request is received during this period, the load balancer closes the connection and establishes a new one with the client when the next request arrives.</li><li id="cce_10_0730__li63666417810">Timeout for waiting for a request from a client: If the client fails to send a request header to the load balancer during the timeout duration or the interval for sending body data exceeds a specified period, the load balancer will release the connection.</li><li id="cce_10_0730__li01084463819">Timeout setting for waiting for a response from a backend server: If the backend server fails to respond during the timeout duration, the load balancer will stop waiting and return HTTP 504 Gateway Timeout to the client.</li></ul>
|
|
<div class="section" id="cce_10_0730__section29231619181915"><h4 class="sectiontitle">Prerequisites</h4><ul id="cce_10_0730__ul05740194522"><li id="cce_10_0730__li1757441955220">A CCE standard or Turbo cluster is available. The table below shows which cluster versions support the timeout configuration.
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0730__en-us_topic_0000001629730033_table13284135311563" frame="border" border="1" rules="all"><thead align="left"><tr id="cce_10_0730__en-us_topic_0000001629730033_row9285115310563"><th align="left" class="cellrowborder" valign="top" width="23.36%" id="mcps1.3.3.2.1.1.1.4.1.1"><p id="cce_10_0730__en-us_topic_0000001629730033_p1921216546115">Timeout Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.91%" id="mcps1.3.3.2.1.1.1.4.1.2"><p id="cce_10_0730__en-us_topic_0000001629730033_p6249820123118">Load Balancer Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.73%" id="mcps1.3.3.2.1.1.1.4.1.3"><p id="cce_10_0730__en-us_topic_0000001629730033_p127095111330">Supported Cluster Version</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0730__en-us_topic_0000001629730033_row10285135385614"><td class="cellrowborder" valign="top" width="23.36%" headers="mcps1.3.3.2.1.1.1.4.1.1 "><p id="cce_10_0730__en-us_topic_0000001629730033_p92121154317">Idle Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.91%" headers="mcps1.3.3.2.1.1.1.4.1.2 "><p id="cce_10_0730__en-us_topic_0000001629730033_p1724932010311">Dedicated</p>
|
|
</td>
|
|
<td class="cellrowborder" rowspan="3" valign="top" width="51.73%" headers="mcps1.3.3.2.1.1.1.4.1.3 "><ul id="cce_10_0730__en-us_topic_0000001629730033_ul1319892013310"><li id="cce_10_0730__en-us_topic_0000001629730033_li15198122023310">v1.19: v1.19.16-r30 or later</li><li id="cce_10_0730__en-us_topic_0000001629730033_li18198142013319">v1.21: v1.21.10-r10 or later</li><li id="cce_10_0730__en-us_topic_0000001629730033_li2198120133318">v1.23: v1.23.8-r10 or later</li><li id="cce_10_0730__en-us_topic_0000001629730033_li6198162010334">v1.25: v1.25.3-r10 or later</li><li id="cce_10_0730__en-us_topic_0000001629730033_li5275124323318">Other clusters of later versions</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row16112310208"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.1.1.1.4.1.1 "><p id="cce_10_0730__p21717339191">Request Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.1.1.1.4.1.2 "><p id="cce_10_0730__p781913348208">Dedicated</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row1838671892017"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.1.1.1.4.1.1 "><p id="cce_10_0730__p118864367199">Response Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.1.1.1.4.1.2 "><p id="cce_10_0730__p11829153411204">Dedicated</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="cce_10_0730__li1578113511562">An available workload has been deployed in the cluster for external access. If no workload is available, deploy a workload by referring to <a href="cce_10_0047.html">Creating a Deployment</a>, <a href="cce_10_0048.html">Creating a StatefulSet</a>, or <a href="cce_10_0216.html">Creating a DaemonSet</a>.</li><li id="cce_10_0730__li79178855112">A Service for external access has been configured for the workload. <a href="cce_10_0094.html#cce_10_0094__section3565202819276">Services Supported by LoadBalancer Ingresses</a> lists the Service types supported by LoadBalancer ingresses.</li></ul>
|
|
</div>
|
|
<div class="section" id="cce_10_0730__section198615862717"><h4 class="sectiontitle">Notes and Constraints</h4><ul id="cce_10_0730__ul888054316594"><li id="cce_10_0730__li194242322719">If you delete the timeout configuration when updating an ingress, the timeout configuration of the existing listener will be retained.</li><li id="cce_10_0730__li1662484416227">If multiple ingresses share the same external port on a load balancer, you are advised to use the same timeout configuration for these ingresses. Otherwise, the configuration of the first created ingress will take precedence. For details, see <a href="cce_10_0954.html">Configuring Multiple Ingresses in a Cluster to Use the Same Load Balancer</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="cce_10_0730__section65096229469"><h4 class="sectiontitle">Using the CCE Console to Configure Timeout</h4><ol id="cce_10_0730__ol11182813184815"><li id="cce_10_0730__li330462393220"><span>Log in to the <span id="cce_10_0730__cce_10_0004_ph18314322182">CCE console</span> and click the cluster name to access the cluster console.</span></li><li id="cce_10_0730__li1651955651312"><span>In the navigation pane, choose <strong id="cce_10_0730__b1927816131217"><span id="cce_10_0730__text9765124722315">Services & Ingresses</span></strong>. Click the <strong id="cce_10_0730__b19278613328">Ingresses</strong> tab and click <strong id="cce_10_0730__b1827815133212">Create Ingress</strong> in the upper right corner.</span></li><li id="cce_10_0730__li123254304536"><span>Configure ingress parameters.</span><p><div class="note" id="cce_10_0730__note20244416142510"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="cce_10_0730__p1624416162256">This example explains only key parameters for configuring timeout. You can configure other parameters as required. For details, see <a href="cce_10_0251.html">Creating a LoadBalancer Ingress on the Console</a>.</p>
|
|
</div></div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0730__table126841312121118" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Key parameters</caption><thead align="left"><tr id="cce_10_0730__row1568431217118"><th align="left" class="cellrowborder" valign="top" width="15.47%" id="mcps1.3.5.2.3.2.2.2.4.1.1"><p id="cce_10_0730__p1568418122112">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="61.19%" id="mcps1.3.5.2.3.2.2.2.4.1.2"><p id="cce_10_0730__p9684201221112">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.34%" id="mcps1.3.5.2.3.2.2.2.4.1.3"><p id="cce_10_0730__p1967985011345">Example</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0730__row2684171261110"><td class="cellrowborder" valign="top" width="15.47%" headers="mcps1.3.5.2.3.2.2.2.4.1.1 "><p id="cce_10_0730__p068441251118">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.19%" headers="mcps1.3.5.2.3.2.2.2.4.1.2 "><p id="cce_10_0730__p76841412131116">Enter an ingress name.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.34%" headers="mcps1.3.5.2.3.2.2.2.4.1.3 "><p id="cce_10_0730__p9679155013412">ingress-test</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row6684201231120"><td class="cellrowborder" valign="top" width="15.47%" headers="mcps1.3.5.2.3.2.2.2.4.1.1 "><p id="cce_10_0730__p66841912101118">Load Balancer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.19%" headers="mcps1.3.5.2.3.2.2.2.4.1.2 "><p id="cce_10_0730__p12684312141119">Select a load balancer to be associated with the ingress or automatically create a load balancer. A load balancer can be dedicated or shared.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.34%" headers="mcps1.3.5.2.3.2.2.2.4.1.3 "><p id="cce_10_0730__p3679155018345">Dedicated</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row4841539172310"><td class="cellrowborder" valign="top" width="15.47%" headers="mcps1.3.5.2.3.2.2.2.4.1.1 "><p id="cce_10_0730__p17704229181112">Listener</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.19%" headers="mcps1.3.5.2.3.2.2.2.4.1.2 "><ul id="cce_10_0730__ul455143821118"><li id="cce_10_0730__li1232513016533"><strong id="cce_10_0730__b144321022133217">Frontend Protocol</strong>: <strong id="cce_10_0730__b13184141494">HTTP</strong> and <strong id="cce_10_0730__b14318141484913">HTTPS</strong> are available.</li><li id="cce_10_0730__li19863155011215"><strong id="cce_10_0730__b55356277320">External Port</strong>: specifies the port of the load balancer listener.</li><li id="cce_10_0730__li188591211113714"><strong id="cce_10_0730__b155577026735934">Advanced Options</strong><ul id="cce_10_0730__ul13529202503716"><li id="cce_10_0730__li62191194374"><strong id="cce_10_0730__b191001758133717">Idle Timeout (s)</strong>: specifies the idle timeout of a client connection. If there are no requests reaching the load balancer during this period, the load balancer will disconnect the connection from the client and establish a new connection when there is a new request.<p id="cce_10_0730__p19472131917134">The value ranges from <strong id="cce_10_0730__cce_10_0730_b5354164517358">0</strong> to <strong id="cce_10_0730__cce_10_0730_b02392471356">4000</strong> (in seconds). The default value is <strong id="cce_10_0730__cce_10_0730_b398892581517">60</strong>.</p>
|
|
</li><li id="cce_10_0730__li12631112903715"><strong id="cce_10_0730__b696119515394">Request Timeout (s)</strong>: specifies the timeout duration for waiting for a client request.<p id="cce_10_0730__p1346182519490">Specifically:</p>
|
|
<p id="cce_10_0730__p14975913174917">If the client fails to send a request header to the load balancer during this period, the request will be interrupted.</p>
|
|
<p id="cce_10_0730__p179671113164916">If the interval between two consecutive request bodies reaching the load balancer is greater than the timeout duration, the connection will be disconnected.</p>
|
|
<p id="cce_10_0730__p7454164010138">The value ranges from <strong id="cce_10_0730__cce_10_0730_b1773034512316">1</strong> to <strong id="cce_10_0730__cce_10_0730_b7731745837">300</strong> (in seconds). The default value is <strong id="cce_10_0730__cce_10_0730_b773118452033">60</strong>.</p>
|
|
</li><li id="cce_10_0730__li170433818379"><strong id="cce_10_0730__b0720201744110">Response Timeout (s)</strong>: specifies the timeout duration for waiting for a response from a backend server. If the backend server does not respond within this period after receiving a request, the load balancer will stop waiting and return an HTTP 504 error.<p id="cce_10_0730__p156531257161320">The value ranges from <strong id="cce_10_0730__cce_10_0730_b388355018312">1</strong> to <strong id="cce_10_0730__cce_10_0730_b98837501437">300</strong> (in seconds). The default value is <strong id="cce_10_0730__cce_10_0730_b14883950733">60</strong>.</p>
|
|
</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.34%" headers="mcps1.3.5.2.3.2.2.2.4.1.3 "><ul id="cce_10_0730__ul19125137132412"><li id="cce_10_0730__li171253702415">Frontend Protocol: HTTP</li><li id="cce_10_0730__li7218648171014">External Port: 80</li><li id="cce_10_0730__li143566375385">Advanced Options<ul id="cce_10_0730__ul1535611377384"><li id="cce_10_0730__li19356937113811">Idle Timeout (s): 60</li><li id="cce_10_0730__li83562037173813">Request Timeout (s): 60</li><li id="cce_10_0730__li16356237183810">Response Timeout (s): 60</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row11838112317128"><td class="cellrowborder" valign="top" width="15.47%" headers="mcps1.3.5.2.3.2.2.2.4.1.1 "><p id="cce_10_0730__p138383238121">Forwarding Policy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.19%" headers="mcps1.3.5.2.3.2.2.2.4.1.2 "><ul id="cce_10_0730__ul1379019285196"><li id="cce_10_0730__cce_10_0687_li3858186912"><strong id="cce_10_0730__cce_10_0687_b1181325161413">Domain Name</strong>: Enter an actual domain name to be accessed. If it is left blank, the ingress can be accessed through the IP address. Ensure that the domain name has been registered and licensed. Once a forwarding policy is configured with a domain name specified, you must use the domain name for access.</li><li id="cce_10_0730__cce_10_0687_li2086218897"><strong id="cce_10_0730__cce_10_0687_b2360193614371">Path Matching Rule</strong>: Select <strong id="cce_10_0730__cce_10_0687_b8367172203911">Prefix match</strong>, <strong id="cce_10_0730__cce_10_0687_b1698532315392">Exact match</strong>, or <strong id="cce_10_0730__cce_10_0687_b167151527103913">RegEx match</strong>.</li><li id="cce_10_0730__cce_10_0687_li188619181495"><strong id="cce_10_0730__cce_10_0687_b127871335104915">Path</strong>: Enter the path provided by a backend application for external access. The path added must be valid in the backend application, or the forwarding cannot take effect.</li><li id="cce_10_0730__cce_10_0687_li386818791"><strong id="cce_10_0730__cce_10_0687_b95168033875837">Destination Service</strong>: Select an existing Service. Only Services that meet the requirements are automatically displayed in the Service list. </li><li id="cce_10_0730__cce_10_0687_li118614181492"><strong id="cce_10_0730__cce_10_0687_b619633162520">Destination Service Port</strong>: Select the access port of the destination Service.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.34%" headers="mcps1.3.5.2.3.2.2.2.4.1.3 "><ul id="cce_10_0730__ul16620123141913"><li id="cce_10_0730__li8620123131914">Domain Name: You do not need to configure this parameter.</li><li id="cce_10_0730__li039919537193">Path Matching Rule: Prefix match</li><li id="cce_10_0730__li13620153113197">Path: /</li><li id="cce_10_0730__li5620331171920">Destination Service: nginx</li><li id="cce_10_0730__li3620143161918">Destination Service Port: 80</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="cce_10_0730__li179082217613"><span>Click <strong id="cce_10_0730__b1220293620451">OK</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="cce_10_0730__section1064923115198"><h4 class="sectiontitle">Using kubectl to Configure Timeout</h4><ol id="cce_10_0730__ol18588159121215"><li id="cce_10_0730__li5499103219119"><span>Use kubectl to access the cluster. For details, see <a href="cce_10_0107.html">Accessing a Cluster Using kubectl</a>.</span></li><li id="cce_10_0730__li128720461410"><span>Create a YAML file named <strong id="cce_10_0730__b2142557724103619">ingress-test.yaml</strong>. The file name can be customized.</span><p><pre class="screen" id="cce_10_0730__screen024585632819">vi ingress-test.yaml</pre>
|
|
<p id="cce_10_0730__p5555947202415">An example YAML file of an ingress associated with an existing load balancer is as follows:</p>
|
|
<pre class="screen" id="cce_10_0730__screen1086242019288">apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: test
|
|
namespace: default
|
|
annotations:
|
|
kubernetes.io/elb.port: <i><span class="varname" id="cce_10_0730__varname1832111445314">'80'</span></i>
|
|
kubernetes.io/elb.id: <i><span class="varname" id="cce_10_0730__varname1643512971115"><your_elb_id></span></i> # In this example, an existing dedicated load balancer is used. Replace its ID with the ID of your dedicated load balancer.
|
|
kubernetes.io/elb.class: <i><span class="varname" id="cce_10_0730__varname523511745313">performance</span></i>
|
|
<strong id="cce_10_0730__b6529153911564">kubernetes.io/elb.keepalive_timeout: <i><span class="varname" id="cce_10_0730__varname1174816548567">'300'</span></i></strong> # Timeout setting for client connections
|
|
<strong id="cce_10_0730__b20958164219569">kubernetes.io/elb.client_timeout: <i><span class="varname" id="cce_10_0730__varname17115105219564">'60'</span></i></strong> # Timeout for waiting for a request from a client
|
|
<strong id="cce_10_0730__b1359944419561">kubernetes.io/elb.member_timeout: <i><span class="varname" id="cce_10_0730__varname1547494935620">'60'</span></i></strong> # Timeout for waiting for a response from a backend server
|
|
spec:
|
|
rules:
|
|
- host: ''
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
service:
|
|
name: <i><span class="varname" id="cce_10_0730__varname566288145414">test</span></i>
|
|
port:
|
|
number: <i><span class="varname" id="cce_10_0730__varname1135121125419">80</span></i>
|
|
property:
|
|
ingress.beta.kubernetes.io/url-match-mode: STARTS_WITH
|
|
pathType: ImplementationSpecific
|
|
ingressClassName: cce</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0730__table105811613192120" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Key annotation parameters</caption><thead align="left"><tr id="cce_10_0730__row8581191342118"><th align="left" class="cellrowborder" valign="top" width="24.85%" id="mcps1.3.6.2.2.2.4.2.5.1.1"><p id="cce_10_0730__p5581191352113">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.31%" id="mcps1.3.6.2.2.2.4.2.5.1.2"><p id="cce_10_0730__p115812013172119">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.379999999999999%" id="mcps1.3.6.2.2.2.4.2.5.1.3"><p id="cce_10_0730__p65814137212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.46000000000001%" id="mcps1.3.6.2.2.2.4.2.5.1.4"><p id="cce_10_0730__p95811013132115">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0730__row19726105734317"><td class="cellrowborder" valign="top" width="24.85%" headers="mcps1.3.6.2.2.2.4.2.5.1.1 "><p id="cce_10_0730__p3726357204320">kubernetes.io/elb.keepalive_timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.31%" headers="mcps1.3.6.2.2.2.4.2.5.1.2 "><p id="cce_10_0730__p18727157104314">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.379999999999999%" headers="mcps1.3.6.2.2.2.4.2.5.1.3 "><p id="cce_10_0730__p167271157174316">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.46000000000001%" headers="mcps1.3.6.2.2.2.4.2.5.1.4 "><p id="cce_10_0730__p1872713579438">Timeout for client connections. If there are no requests reaching the load balancer during the timeout duration, the load balancer will disconnect the connection from the client and establish a new connection when there is a new request.</p>
|
|
<p id="cce_10_0730__p129426321050">The value ranges from <strong id="cce_10_0730__b5354164517358">0</strong> to <strong id="cce_10_0730__b02392471356">4000</strong> (in seconds). The default value is <strong id="cce_10_0730__b398892581517">60</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row113091226155810"><td class="cellrowborder" valign="top" width="24.85%" headers="mcps1.3.6.2.2.2.4.2.5.1.1 "><p id="cce_10_0730__p15185184413587">kubernetes.io/elb.client_timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.31%" headers="mcps1.3.6.2.2.2.4.2.5.1.2 "><p id="cce_10_0730__p14185444175811">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.379999999999999%" headers="mcps1.3.6.2.2.2.4.2.5.1.3 "><p id="cce_10_0730__p111852440582">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.46000000000001%" headers="mcps1.3.6.2.2.2.4.2.5.1.4 "><p id="cce_10_0730__p14890435175816">Timeout for waiting for a request from a client. There are two cases:</p>
|
|
<ul id="cce_10_0730__ul188906351584"><li id="cce_10_0730__li158902359587">If the client fails to send a request header to the load balancer during this period, the request will be interrupted.</li><li id="cce_10_0730__li18890173585815">If the interval between two consecutive request bodies reaching the load balancer is greater than the timeout duration, the connection will be disconnected.</li></ul>
|
|
<p id="cce_10_0730__p4890735175813">The value ranges from <strong id="cce_10_0730__b1773034512316">1</strong> to <strong id="cce_10_0730__b7731745837">300</strong> (in seconds). The default value is <strong id="cce_10_0730__b773118452033">60</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0730__row165751627135813"><td class="cellrowborder" valign="top" width="24.85%" headers="mcps1.3.6.2.2.2.4.2.5.1.1 "><p id="cce_10_0730__p22012458581">kubernetes.io/elb.member_timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.31%" headers="mcps1.3.6.2.2.2.4.2.5.1.2 "><p id="cce_10_0730__p16201174545817">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.379999999999999%" headers="mcps1.3.6.2.2.2.4.2.5.1.3 "><p id="cce_10_0730__p152011945185812">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.46000000000001%" headers="mcps1.3.6.2.2.2.4.2.5.1.4 "><p id="cce_10_0730__p7707134085811">The duration within which a response from the backend server is expected. After a request is forwarded to the backend server, if the backend server does not respond within the duration specified by <strong id="cce_10_0730__b323114554311">member_timeout</strong>, the load balancer will stop waiting and return HTTP 504 Gateway Timeout.</p>
|
|
<p id="cce_10_0730__p137076404588">The value ranges from <strong id="cce_10_0730__b388355018312">1</strong> to <strong id="cce_10_0730__b98837501437">300</strong> (in seconds). The default value is <strong id="cce_10_0730__b14883950733">60</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="cce_10_0730__li13420131462418"><span>Create an ingress.</span><p><pre class="screen" id="cce_10_0730__screen7530152162919">kubectl create -f ingress-test.yaml</pre>
|
|
<p id="cce_10_0730__p5420131416240">If information similar to the following is displayed, the ingress has been created:</p>
|
|
<pre class="screen" id="cce_10_0730__screen1742018145243">ingress/ingress-test created</pre>
|
|
</p></li><li id="cce_10_0730__li17235910124"><span>Check the created ingress.</span><p><pre class="screen" id="cce_10_0730__screen117628192920">kubectl get ingress</pre>
|
|
<p id="cce_10_0730__p224315113121">If information similar to the following is displayed, the ingress has been created:</p>
|
|
<pre class="screen" id="cce_10_0730__screen135291174384">NAME CLASS HOSTS ADDRESS PORTS AGE
|
|
ingress-test cce * 121.**.**.** 80 10s</pre>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_10_0935.html">Advanced Setting Examples of LoadBalancer Ingresses</a></div>
|
|
</div>
|
|
</div>
|
|
|