Updates the sidecar proxy configurations of a namespace.
Debugging
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 ASM instance. |
| Namespace | String | No | default | The namespace for which you want to update the sidecar proxy configurations. |
| IncludeIPRanges | String | No | * | The range of IP addresses that are denied to access external services. ( |
| ExcludeIPRanges | String | No | 172.16.0.0/12 | The range of IP addresses that are allowed to access external services. ( |
| 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 | {"postStart":{"exec":{"command":["pilot-agent","wait"]}},"preStop":{"exec":{"command":["/bin/sh","-c","sleep 15"]}}} | The lifecycle of the sidecar proxy. |
| IstioDNSProxyEnabled | Boolean | No | true | Specifies whether to enable the Domain Name System (DNS) proxy feature. Valid values:
|
| PostStart | String | No | {"exec":{"command":["pilot-agent","wait"]}} | The post-start parameters of Istio Proxy. |
| PreStop | String | No | {"exec":{"command":["/bin/sh","-c","sleep 15"]}} | The pre-close parameters of Istio Proxy. |
| Concurrency | Integer | No | 2 | The number of worker threads to run in Istio Proxy. |
| ProxyStatsMatcher | String | No | { "inclusionPrefixes": [ "cluster.outbound", "cluster_manager", "listener_manager", "server", "cluster.xds-grpc" ], "inclusionRegexps": [ "listener.*.downstream_cx_total", "listener.*.downstream_cx_active" ] } | The monitoring metrics for data collected by Envoy proxies. The value is in the JSON format. |
| HoldApplicationUntilProxyStarts | Boolean | No | true | Specifies whether applications can be started only after Istio Proxy starts. Valid values:
|
| LogLevel | String | No | info | The log level. Valid values: |
| Tracing | String | No | {"sampling":99.8,"custom_tags":{"test":{"literal":{"value":"testnamespace"}}}} | The custom configurations of Tracing Analysis. The configurations must be serialized into JSON strings. The configurations contain the following parameters:
|
| InterceptionMode | String | No | TPROXY | The mode in which the sidecar proxy intercepts inbound traffic. Valid values:
|
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
&PostStart={"exec":{"command":["pilot-agent","wait"]}}
&PreStop={"exec":{"command":["/bin/sh","-c","sleep 15"]}}
&Concurrency=2
&ProxyStatsMatcher={ "inclusionPrefixes": [ "cluster.outbound", "cluster_manager", "listener_manager", "server", "cluster.xds-grpc" ], "inclusionRegexps": [ "listener.*.downstream_cx_total", "listener.*.downstream_cx_active" ] }
&HoldApplicationUntilProxyStarts=true
&LogLevel=info
&Tracing={"sampling":99.8,"custom_tags":{"test":{"literal":{"value":"testnamespace"}}}}
&InterceptionMode=TPROXY
&<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, see Service error codes.