Updates the configurations of sidecar proxies at the namespace level.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateNamespaceScopeSidecarConfig

The operation that you want to perform. Set the value to UpdateNamespaceScopeSidecarConfig.

ServiceMeshId String Yes ca04bc38979214bf2882be79d39b4****

The ID of the Alibaba Cloud Service Mesh (ASM) instance.

Namespace String No default

The name of the namespace.

IncludeIPRanges String No *

The range of IP addresses that are denied to access external services. (global.proxy.includelPRanges)

ExcludeIPRanges String No 172.16.0.0/12

The range of IP addresses that are allowed to access external services. (global.proxy.excludelPRanges)

IncludeInboundPorts String No 83

The port that the inbound traffic of the sidecar proxy passes through.

ExcludeOutboundPorts String No 81

The port that the outbound traffic of the sidecar proxy does not pass through.

ExcludeInboundPorts String No 82

The port that the inbound traffic of the sidecar proxy does not pass through.

IncludeOutboundPorts String No 84

The port that the outbound traffic of the sidecar proxy passes through.

TerminationDrainDuration String No 6s

The maximum period of time that the sidecar proxy waits for a request to end.

ProxyInitCPUResourceLimit String No 2000 m

The maximum number of CPU cores that are available to the sidecar proxy init container.

ProxyInitMemoryResourceLimit String No 50 Mi

The maximum size of memory that is available to the sidecar proxy init container.

ProxyInitCPUResourceRequest String No 60 m

The minimum number of CPU cores that are requested by the sidecar proxy init container.

ProxyInitMemoryResourceRequest String No 30 Mi

The minimum size of memory that is requested by the sidecar proxy init container.

SidecarProxyCPUResourceLimit String No 2000 m

The maximum number of CPU cores that are available to the sidecar proxy container.

SidecarProxyMemoryResourceLimit String No 50 Mi

The maximum size of memory that is available to the sidecar proxy container.

SidecarProxyCPUResourceRequest String No 60 m

The minimum number of CPU cores that are requested by the sidecar proxy container.

SidecarProxyMemoryResourceRequest String No 30 Mi

The minimum size of memory that is requested by the sidecar proxy container.

Lifecycle String No null

The settings of sidecar proxy lifecycle.

IstioDNSProxyEnabled Boolean No true

Specifies whether to enable the DNS proxy feature.

  • true: enables the DNS proxy feature.
  • false: disables the DNS proxy feature.

Response parameters

Parameter Type Example Description
RequestId String 31d3a0f0-07ed-4f6e-9004-1804498c****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateNamespaceScopeSidecarConfig
&ServiceMeshId=ca04bc38979214bf2882be79d39b4****
&Namespace=default
&IncludeIPRanges=*
&ExcludeIPRanges=172.16.0.0/12
&IncludeInboundPorts=83
&ExcludeOutboundPorts=81
&ExcludeInboundPorts=82
&IncludeOutboundPorts=84
&TerminationDrainDuration=6s
&ProxyInitCPUResourceLimit=2000 m
&ProxyInitMemoryResourceLimit=50 Mi
&ProxyInitCPUResourceRequest=60 m
&ProxyInitMemoryResourceRequest=30 Mi
&SidecarProxyCPUResourceLimit=2000 m
&SidecarProxyMemoryResourceLimit=50 Mi
&SidecarProxyCPUResourceRequest=60 m
&SidecarProxyMemoryResourceRequest=30 Mi
&Lifecycle={"postStart":{"exec":{"command":["pilot-agent","wait"]}},"preStop":{"exec":{"command":["/bin/sh","-c","sleep 15"]}}}
&IstioDNSProxyEnabled=true
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateNamespaceScopeSidecarConfigResponse>
    <RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
</UpdateNamespaceScopeSidecarConfigResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "31d3a0f0-07ed-4f6e-9004-1804498c****"
}

Error codes

For a list of error codes, visit the API Error Center.