在 values.yaml 文件中定义 AWS S3 存储桶名称的位置。

huangapple go评论65阅读模式
英文:

Grafana Loki Helm Chart - Where to define the AWS S3 bucket name in the values.yaml file

问题

https://github.com/grafana/loki/blob/67c0b3ed2c1574db85673b796080aa87517b07d7/production/helm/loki/values.yaml#L219
但它报错了,说桶名无效

  storage:
    bucketNames:
      chunks: chunks
      ruler: ruler
      admin: admin
    type: s3
    s3:
      s3: null
      endpoint: null
      region: null
      secretAccessKey: null
      accessKeyId: null
      s3ForcePathStyle: false
      insecure: false
      http_config: {}

我已创建了一个S3存储桶,并使用服务帐户授予对该存储桶的访问权限。请问有人可以帮助我了解如何使用新的helm chart配置 S3 存储桶吗?

英文:

I tried defining the bucket name under:

https://github.com/grafana/loki/blob/67c0b3ed2c1574db85673b796080aa87517b07d7/production/helm/loki/values.yaml#L219
but its throwing invalid bucket name

  storage:
    bucketNames:
      chunks: chunks
      ruler: ruler
      admin: admin
    type: s3
    s3:
      s3: null
      endpoint: null
      region: null
      secretAccessKey: null
      accessKeyId: null
      s3ForcePathStyle: false
      insecure: false
      http_config: {}

I have created an S3 bucket and using the service account to provide access to the bucket.

Can some one help me with how you have used the S3 bucket using the new helm chart

答案1

得分: 1

bucketNames.chunks 字段中定义:

您可以在 helm-chart 存储库中搜索关键字的用法。例如,bucketNames 用于填充 S3 存储桶。请参见此处

英文:

tldr: define in the bucketNames.chunks field

You can search for the usage of the keywords in the helm-chart repo. For example, the bucketNames is used to populate the s3 bucket. See here.

答案2

得分: 1

你可以按照以下方式传递存储桶的详细信息。您可以使用单个存储桶用于块、规则和管理,或者您可以使用不同的存储桶。

loki:
  storage:
    bucketNames:
      chunks: aws-bucket-name
      ruler: aws-bucket-name
      admin: aws-bucket-name
    type: s3
    s3:
      region: aws-region
  auth_enabled: false
英文:

You can pass the bucket details as below. Either you can use the single bucket for chunk, ruler and admin or you can use different buckets.

loki:
  storage:
    bucketNames:
      chunks: aws-bucket-name
      ruler: aws-bucket-name
      admin: aws-bucket-name
    type: s3
    s3:
      region: aws-region
  auth_enabled: false

huangapple
  • 本文由 发表于 2023年4月11日 02:27:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75979686.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定