Amazon 用于Fluent Bit图片 - Amazon Elastic Container Service
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Amazon 用于Fluent Bit图片

Amazon 提供了一个包含 CloudWatch 日志和 Firehose 插件的Fluent Bit图像。我们建议使用 Fluent Bit 作为日志路由器,因为其资源利用率低于 Fluentd。有关更多信息,请参阅 Fluent Bit 的CloudWatch 日志和 Fluent B it 的 Amazon Kinesis Firehose

f Amazon or Fluent Bit 图片可在亚马逊 ECR 的亚马逊 ECR 公共画廊和亚马逊 ECR 存储库中找到,大多数情况下都可以在亚马逊 ECR 存储库中找到, Amazon Web Services 区域 以实现高可用性。

Amazon ECR Public Gallery

f Amazon or Fluent Bit 图片可在 Amazon ECR 公共画廊中找到。这是下载Fluent Bit图片 Amazon 的推荐位置,因为它是一个公共存储库,可供所有人使用 Amazon Web Services 区域。有关更多信息,请参阅 aws-for-fluent-bitAmazon ECR 公共画廊。

Linux

Amazon ECR 公共图库中的 for Fluent Bit 图片支持带有ARM 64、或x86-64架构的 Amazon Linux 操作系统。 Amazon

您可以通过指定带有 Amazon 所需Fluent Bit图像标签的存储库 URL 来从 Amazon ECR 公共库中提取图片。可在 Amazon ECR Public Gallery 上的映像标签选项卡上找到映像标签。

下面说明 Docker CLI 使用的语法。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:tag

例如,您可以使用此 Docker CLI 命令提取最新的稳定 Amazon Fluent Bit镜像。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:stable
注意

可以进行未经身份验证的拉取,但速率限制低于经过身份验证的拉取。要在拉取之前使用您的 Amazon 账户进行身份验证,请使用以下命令。

aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

Windows

Amazon ECR 公共图库中的 for Fluent Bit 图像支持采用以下操作系统的AMD64架构: Amazon

  • Windows Server 2022 Full

  • Windows Server 2022 Core

  • Windows Server 2019 Full

  • Windows Server 2019 Core

Amazon Fargate 上的 Windows 容器不支持。 FireLens

您可以通过指定带有 Amazon 所需Fluent Bit图像标签的存储库 URL 来从 Amazon ECR 公共库中提取图片。可在 Amazon ECR Public Gallery 上的映像标签选项卡上找到映像标签。

下面说明 Docker CLI 使用的语法。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:tag

例如,您可以使用此 Docker CLI 命令提取最新的稳定 Amazon Fluent Bit镜像。

docker pull public.ecr.aws/aws-observability/aws-for-fluent-bit:windowsservercore-stable
注意

可以进行未经身份验证的拉取,但速率限制低于经过身份验证的拉取。要在拉取之前使用您的 Amazon 账户进行身份验证,请使用以下命令。

aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

Amazon ECR

f Amazon or Fluent Bit 图片已在 Amazon ECR 上线,以实现高可用性。这些图像在大多数情况下都可用 Amazon Web Services 区域,包括 Amazon GovCloud (US)。

Linux

可以使用以下命令检索 Fluent Bit 镜像 URI 的最新稳定 Amazon 版。

aws ssm get-parameters \ --names /aws/service/aws-for-fluent-bit/stable \ --region us-east-1

可以使用以下命令列出 f Amazon or Fluent Bit 图像的所有版本来查询 Systems Manager Parameter Store 参数。

aws ssm get-parameters-by-path \ --path /aws/service/aws-for-fluent-bit \ --region us-east-1

通过引用 Systems Manager 参数存储库名称,可以在 Amazon CloudFormation 模板中引用 Fluent Bit 的最新稳定 Amazon 镜像。以下是 示例:

Parameters: FireLensImage: Description: Fluent Bit image for the FireLens Container Type: AWS::SSM::Parameter::Value<String> Default: /aws/service/aws-for-fluent-bit/stable

Windows

可以使用以下命令检索 Fluent Bit 镜像 URI 的最新稳定 Amazon 版。

aws ssm get-parameters \ --names /aws/service/aws-for-fluent-bit/windowsservercore:stable \ --region us-east-1

可以使用以下命令列出 f Amazon or Fluent Bit 图像的所有版本来查询 Systems Manager Parameter Store 参数。

aws ssm get-parameters-by-path \ --path /aws/service/aws-for-fluent-bit/windowsservercore \ --region us-east-1

通过引用 Systems Manager 参数存储库名称,可以在 Amazon CloudFormation 模板中引用 Fluent Bit 的最新稳定 Amazon 镜像。以下是 示例:

Parameters: FireLensImage: Description: Fluent Bit image for the FireLens Container Type: AWS::SSM::Parameter::Value<String> Default: /aws/service/aws-for-fluent-bit/windowsservercore:stable