You can call the UpdateNamespaceScopeSidecarConfig operation to update the sidecar configurations for a namespace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicemesh:UpdateNamespaceScopeSidecarConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceMeshId |
string |
Yes |
The ASM instance ID. |
ca04bc38979214bf2882be79d39b4**** |
| Namespace |
string |
No |
The namespace. |
default |
| IncludeIPRanges |
string |
No |
The IP address ranges for outbound traffic that is intercepted by the sidecar proxy. This corresponds to the |
* |
| ExcludeIPRanges |
string |
No |
The IP address ranges for outbound traffic that is not intercepted by the sidecar proxy. This corresponds to the |
172.16.0.0/12 |
| IncludeInboundPorts |
string |
No |
The inbound ports for which traffic is intercepted by the sidecar proxy. |
83 |
| ExcludeOutboundPorts |
string |
No |
The outbound ports for which traffic is not intercepted by the sidecar proxy. |
81 |
| ExcludeInboundPorts |
string |
No |
The inbound ports for which traffic is not intercepted by the sidecar proxy. |
82 |
| IncludeOutboundPorts |
string |
No |
The outbound ports for which traffic is intercepted by the sidecar proxy. |
84 |
| TerminationDrainDuration |
string |
No |
The duration for which the sidecar proxy waits for active connections to terminate. |
6s |
| ProxyInitCPUResourceLimit |
string |
No |
The CPU limit for the sidecar proxy init container. |
2000 m |
| ProxyInitMemoryResourceLimit |
string |
No |
The memory limit for the sidecar proxy init container. |
50 Mi |
| ProxyInitCPUResourceRequest |
string |
No |
The CPU resource request for the sidecar proxy init container. |
60 m |
| ProxyInitMemoryResourceRequest |
string |
No |
The memory resource request for the sidecar proxy init container. |
30 Mi |
| SidecarProxyCPUResourceLimit |
string |
No |
The CPU limit for the sidecar proxy container. |
2000 m |
| SidecarProxyMemoryResourceLimit |
string |
No |
The memory limit for the sidecar proxy container. |
50 Mi |
| SidecarProxyCPUResourceRequest |
string |
No |
The CPU resource request for the sidecar proxy container. |
60 m |
| SidecarProxyMemoryResourceRequest |
string |
No |
The memory resource request for the sidecar proxy container. |
30 Mi |
| Lifecycle |
string |
No |
The lifecycle of the sidecar proxy. |
{"postStart":{"exec":{"command":["pilot-agent","wait"]}},"preStop":{"exec":{"command":["/bin/sh","-c","sleep 15"]}}} |
| IstioDNSProxyEnabled |
boolean |
No |
Specifies whether to enable the DNS proxy feature. Valid values:
|
true |
| PostStart |
string |
No |
The parameters that are executed after the istio-proxy container starts. |
{"exec":{"command":["pilot-agent","wait"]}} |
| PreStop |
string |
No |
The parameters that are executed before the istio-proxy container stops. |
{"exec":{"command":["/bin/sh","-c","sleep 15"]}} |
| Concurrency |
integer |
No |
The number of concurrent threads for the istio-proxy. |
2 |
| ProxyStatsMatcher |
string |
No |
The metrics that are used for Envoy monitoring and statistics. The value is in the JSON format. |
{ "inclusionPrefixes": [ "cluster.outbound", "cluster_manager", "listener_manager", "server", "cluster.xds-grpc" ], "inclusionRegexps": [ "listener.*.downstream_cx_total", "listener.*.downstream_cx_active" ] } |
| HoldApplicationUntilProxyStarts |
boolean |
No |
Specifies whether to wait for the istio-proxy container to start before the application starts. Valid values:
|
true |
| LogLevel |
string |
No |
The log level. Valid values: |
info |
| Tracing |
string |
No |
The custom configurations for Tracing Analysis. The configurations must be serialized into a JSON string. The Tracing Analysis configuration contains the following fields:
|
{"sampling":99.8,"custom_tags":{"test":{"literal":{"value":"testnamespace"}}}} |
| InterceptionMode |
string |
No |
The policy used by the sidecar proxy to intercept inbound traffic. Valid values:
|
TPROXY |
| ProxyMetadata |
string |
No |
The environment variables that are added to the sidecar proxy. The value is a JSON object. The keys and values in the JSON object represent the keys and values of the environment variables that are added to the sidecar proxy. |
{"EXIT_ON_ZERO_ACTIVE_CONNECTIONS":"true"} |
| ProxyInitAckSloCPUResourceLimit |
string |
No |
The CPU limit for the sidecar proxy init container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the CPU limit for the sidecar proxy init container when the pod has the |
2000 |
| ProxyInitAckSloMemoryResourceLimit |
string |
No |
The memory limit for the sidecar proxy init container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the memory limit for the sidecar proxy init container when the pod has the |
2048Mi |
| ProxyInitAckSloCPUResourceRequest |
string |
No |
The CPU resource request for the sidecar proxy init container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the CPU resource request for the sidecar proxy init container when the pod has the |
100 |
| ProxyInitAckSloMemoryResourceRequest |
string |
No |
The memory resource request for the sidecar proxy init container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the memory resource request for the sidecar proxy init container when the pod has the |
128Mi |
| SidecarProxyAckSloCPUResourceLimit |
string |
No |
The CPU limit for the sidecar proxy container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the CPU limit for the sidecar proxy container when the pod has the |
2000 |
| SidecarProxyAckSloMemoryResourceLimit |
string |
No |
The memory limit for the sidecar proxy container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the memory limit for the sidecar proxy container when the pod has the |
2048Mi |
| SidecarProxyAckSloCPUResourceRequest |
string |
No |
The CPU resource request for the sidecar proxy container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the CPU resource request for the sidecar proxy container when the pod has the |
100 |
| SidecarProxyAckSloMemoryResourceRequest |
string |
No |
The memory resource request for the sidecar proxy container, which is specified in the ACK dynamic overcommitment resource format. This parameter is used to set the memory resource request for the sidecar proxy container when the pod has the |
128Mi |
| Privileged |
boolean |
No |
Specifies whether to enable the privileged mode for the sidecar proxy container in the security context. Valid values:
|
false |
| EnableCoreDump |
boolean |
No |
Specifies whether to enable core dump for the sidecar proxy container. A core dump file is generated when a program crashes. Valid values:
|
false |
| ReadinessInitialDelaySeconds |
integer |
No |
The amount of time to wait before the readiness probe is initiated for the sidecar proxy container. Unit: seconds. |
1 |
| ReadinessPeriodSeconds |
integer |
No |
The interval at which the readiness probe is performed for the sidecar proxy container. Unit: seconds. |
2 |
| ReadinessFailureThreshold |
integer |
No |
The failure threshold for the readiness probe of the sidecar proxy container. |
5 |
| SMCEnabled |
boolean |
No |
Specifies whether to enable Shared Memory Communications over Remote Direct Memory Access (SMC-R) optimization. SMC-R optimization improves the performance of cross-node communication. This feature requires Alibaba Cloud Linux 3 and the elastic Remote Direct Memory Access (eRDMA) network device on the node. |
false |
| RuntimeValues |
string |
No |
The runtime parameters for Envoy in the sidecar proxy. The value is a JSON-serialized string. The keys in the object are the Envoy runtime parameters, and the values are the parameter values. The following runtime parameter can be set:
|
{"overload.global_downstream_max_connections":"65536"} |
| ScaledSidecarResource |
object |
No |
||
| ResourceCalculationStrategy |
string |
No |
||
| ContainerRef |
string |
No |
||
| ResourcePercentage |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
31d3a0f0-07ed-4f6e-9004-1804498c**** |
Examples
Success response
JSON format
{
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.