Bump kernel.org/pub/linux/libs/security/libcap/cap in /agent (#114)
Bumps kernel.org/pub/linux/libs/security/libcap/cap from 1.2.69 to 1.2.76.
updated-dependencies:
- dependency-name: kernel.org/pub/linux/libs/security/libcap/cap dependency-version: 1.2.76 dependency-type: direct:production update-type: version-update:semver-patch …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Karan Vasnani karanvasnani@users.noreply.github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Amazon ECS Service Connect Agent
The Amazon ECS Service Connect Agent is a primary component of Amazon ECS Service Connect and AWS App Mesh. It monitors the Envoy proxy and provides a management interface. This management interface serves as a safe endpoint to interact with the Envoy proxy and provides several APIs for health checks, telemetry data and summarizes the operating condition of the proxy. It is used in both ECS Service Connect proxy and App Mesh Envoy Docker Image.
Building the Agent
Option 1: Local build
On an Amazon Linux AMI. Download Go at https://go.dev/doc/install. In the project’s
agentdirectory, issue themakecommand to compile the agent binary:Option 2: Docker build
If you’d rather not install Go and build dependencies locally, you can build entirely in Docker. In the project’s
agentdirectory:You can also run individual make targets:
To create an Envoy image, you could use the following example files:
Example
Dockerfile.agent:Example
Makefile:Use these two example files above, the Dockerfile.agent and Makefile, and place them in a single directory within the agent directory and issue the
make docker-buildcommand. The resultingecs-service-connect:latestcan be used in ECS Service Connect or App Mesh as a sidecar.Advanced Usage
The Amazon ECS Service Connect Agent supports using a few environment variables to alter some aspects of the Envoy’s behavior. These variables are outlined below, and documented in the AWS App Mesh User Guide. These environment variables can be configured when used with AWS App Mesh, and they are not configurable when used with ECS Service Connect.
Required Variables
APPMESH_RESOURCE_ARNEnvoy Bootstrap Environment Variables
These environment variables offer controls for the bootstrap config generation for Envoy when it’s started.
ENVOY_ADMIN_MODEENVOY_ADMIN_ACCESS_LOG_FILEENVOY_ADMIN_ACCESS_PORTENVOY_ADMIN_ACCESS_ENABLE_IPV6ENVOY_LOG_LEVELENVOY_INITIAL_FETCH_TIMEOUTENVOY_CONCURRENCYENABLE_ENVOY_STATS_TAGSappmesh.meshandappmesh.virtual_node. For more information, see config.metrics.v3.TagSpecifier in the Envoy documentation. To enable, set the value to 1.ENVOY_SKIP_DEPRECATED_LOGSfalseto see deprecation warningsENVOY_STATS_FLUSH_INTERVALENVOY_STATS_CONFIG_FILEENVOY_STATS_SINKS_CFG_FILEENABLE_ENVOY_DOG_STATSD127.0.0.1:8125as the default daemon endpointSTATSD_PORTSTATSD_ADDRESS1.15.0or later of the Envoy image.STATSD_SOCKET_PATH127.0.0.1:8125. If theENVOY_STATS_SINKS_CFG_FILEvariable is specified containing a stats sinks configuration, it will override all of the DogStatsD variables. This variable is supported with Envoy image versionv1.19.1.0-prodor lateAPPMESH_METRIC_EXTENSION_VERSIONENABLE_ENVOY_XRAY_TRACINGXRAY_DAEMON_PORTXRAY_SAMPLING_RATEXRAY_SAMPLING_RULE_MANIFESTis specifiedXRAY_SAMPLING_RULE_MANIFESTXRAY_SEGMENT_NAMEv1.23.0.0-prodor later.meshName/virtualNodeNameAWS_XRAY_DAEMON_ADDRESSaddress:port; Different ports –tcp:address:port udp:address:port127.0.0.1:2000for both trace data (UDP) and sampling (TCP)ENABLE_ENVOY_DATADOG_TRACING127.0.0.1:8126as the default Datadog agent endpoint. To enable, set the value to1DATADOG_TRACER_PORTDATADOG_TRACER_ADDRESSDD_SERVICEv1.18.3.0-prodor later.envoy-meshName/virtualNodeNameENABLE_ENVOY_JAEGER_TRACING127.0.0.1:9411as the default Jaeger endpointJAEGER_TRACER_PORTJAEGER_TRACER_ADDRESSJAEGER_TRACER_VERSIONJSONorPROTOendoded formatENVOY_TRACING_CFG_FILEENVOY_CONFIG_FILEENVOY_RESOURCES_CONFIG_FILEAPPMESH_RESOURCE_CLUSTERAPPMESH_RESOURCE_ARNwhen Envoy is referring to itself in metrics and traces. You can override this behavior by setting theAPPMESH_RESOURCE_CLUSTERenvironment variable with your own name. This variable can only be used with version1.15.0or later of the Envoy image.APPMESH_XDS_ENDPOINTappmesh-envoy-management.$AWS_REGION.amazonaws.com:443APPMESH_SIGNING_NAMEAPPMESH_SET_TRACING_DECISIONx-request-idheader appearing in a request from a clientENVOY_NO_EXTENSION_LOOKUP_BY_NAMEENVOY_ENABLE_TCP_POOL_IDLE_TIMEOUTidle_timeoutprotocol options feature is enabled for TCP upstreams. If not configured the defaultidle_timeoutis 10 minutes. Set this environment variable tofalseto disableidle_timeoutoption.ENVOY_USE_HTTP_CLIENT_TO_FETCH_AWS_CREDENTIALSMAX_REQUESTS_PER_IO_CYCLEAPPMESH_SDS_SOCKET_PATHAPPMESH_PREVIEWAPPMESH_DUALSTACK_ENDPOINTAPPMESH_PLATFORM_K8S_VERSIONAPPMESH_PLATFORM_APP_MESH_CONTROLLER_VERSIONAgent Sidecar Operation Environment Variables
These environment variables offer controls to alter Amazon ECS Service Connect Agent functionality acting as a process manager for Envoy and serving useful APIs via a management interface.
APPNET_ENVOY_RESTART_COUNTPID_POLL_INTERVAL_MSLISTENER_DRAIN_WAIT_TIME_SAPPNET_AGENT_ADMIN_MODEAPPNET_AGENT_HTTP_PORTAPPNET_AGENT_HTTP_BIND_ADDRESSAPPNET_AGENT_ADMIN_UDS_PATHAPPNET_AGENT_LOGGING_RESET_TIMEOUT/enableLoggingendpoint (unit: s)APPNET_ENVOY_LOG_DESTINATIONAPPNET_ENVOY_LOG_NAMEAPPNET_AGENT_MAX_LOG_FILE_SIZEAPPNET_AGENT_MAX_RETENTION_COUNTHC_POLL_INTERVAL_MSHC_DISCONNECTED_TIMEOUT_SAPPNET_AGENT_POLL_ENVOY_READINESS_INTERVAL_SAPPNET_AGENT_POLL_ENVOY_READINESS_TIMEOUT_SENABLE_STATS_SNAPSHOTAgent Relay Mode Operation Environment Variables
These environment variables offer controls to alter the agent functionality when running in the Relay mode. The relay runs one per container instance and proxies xDS connections/requests from all the Amazon ECS Service Connect Agent containers running on the host to the control plane management server. It uses a static bootstrap config file stored in the
agent/resources/bootstrap_configsdirectory.APPNET_ENABLE_RELAY_MODE_FOR_XDSAPPNET_MANAGEMENT_DOMAIN_NAMEAPPNET_MANAGEMENT_PORTAPPNET_RELAY_LISTENER_UDS_PATH/tmp/relay_xds.sockRELAY_STREAM_IDLE_TIMEOUTRELAY_BUFFER_LIMIT_BYTESManagement Server Operating Environment Variables
These environment variables are used to pass operating platform/environment information to the management server for control plane operations and dynamic configuration generation.
ECS_CONTAINER_INSTANCE_ARNarn:aws:ecs:region:aws_account_id:container-instance/cluster-name/container-instance-idAPPMESH_PLATFORM_K8S_POD_UIDarn:aws:ecs:region:aws_account_id:container-instance/cluster-name/container-instance-idAPPNET_CONTAINER_IP_MAPPING{"App1":"172.10.1.1","App2":"172.10.1.2"}APPNET_LISTENER_PORT_MAPPING{"Listener1":15000,"Listener2":15001}APPNET_FIPS_MODE_ENABLEDDeprecated
APPMESH_RESOURCE_NAMEAPPMESH_VIRTUAL_NODE_NAMEManagement APIs
The Amazon ECS Service Connect Agent offers a local management interface when
APPNET_AGENT_ADMIN_MODEis set. Following are the supported queries:GET /status: Returns Envoy operating information such as its connectivity state, restarts count, connection with control plane, health check, etc.POST /drain_listeners: Drains all inbound Envoy listeners.POST /enableLogging?level=<desired_level>: Change Envoy logging level across all loggers. The change is automatically reset after a duration configurable usingAPPNET_AGENT_LOGGING_RESET_TIMEOUTvariable.GET /stats/prometheus: Returns Envoy statistics in Prometheus format.GET /stats/prometheus?usedonly: Only returns statistics that Envoy has updated.GET /stats/prometheus?filter=metrics_extension: Filters and returns only the statistics generated by Metrics Extension. Can be used in conjunction withusedonlyparameter.GET /stats/prometheus?usedonly&filter=metrics_extension&delta: Returns a delta of the statistics computed using the latest snapshot retrieved from Envoy. Requires enabling the snapshotter usingENABLE_STATS_SNAPSHOTvariable.Contributing
Contributions and feedback are welcome! Proposals and pull requests will be considered and responded to. For more information, see the CONTRIBUTING file.
If you have a bug/and issue around the behavior of the Amazon ECS Service Connect Agent, please open it here.
If you have a feature request, please open it over at the AWS Containers Roadmap.
Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.