Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The deployment result is inconsistent according to the document on the official website #15343

Open
sunwenbo opened this issue Dec 10, 2024 · 4 comments

Comments

@sunwenbo
Copy link

I need to deploy loki cluster in the microservice mode in my k8s cluster, and deploy it according to the steps in the official website, but the pod displayed in the cluster is inconsistent with the results given in the document, is the chart updated?

values.yaml is also available on the official website

https://grafana.org.cn/docs/loki/latest/setup/install/helm/install-microservices/

This is mine:
Image

This is the deployment result of the official website:
Image

`# Example configuration for Loki with S3 storage

loki:
schemaConfig:
configs:
- from: 2024-04-01
store: tsdb
object_store: s3
schema: v13
index:
prefix: loki_index_
period: 24h
storage_config:
aws:
region: <AWS region your bucket is in, for example, eu-west-2>
bucketnames: <Your AWS bucket for chunk, for example, aws-loki-dev-chunk>
s3forcepathstyle: false
ingester:
chunk_encoding: snappy
pattern_ingester:
enabled: true
limits_config:
allow_structured_metadata: true
volume_enabled: true
retention_period: 672h # 28 days retention
querier:
max_concurrent: 4

storage:
type: s3
bucketNames:
chunks: <Your AWS bucket for chunk, for example, aws-loki-dev-chunk>
ruler: <Your AWS bucket for ruler, for example, aws-loki-dev-ruler>
admin: <Your AWS bucket for admin, for example, aws-loki-dev-admin>
s3:
# s3 URL can be used to specify the endpoint, access key, secret key, and bucket name this works well for S3 compatible storage or if you are hosting Loki on-premises and want to use S3 as the storage backend. Either use the s3 URL or the individual fields below (AWS endpoint, region, secret).
s3: s3://access_key:secret_access_key@custom_endpoint/bucket_name
# AWS endpoint URL
endpoint:
# AWS region where the S3 bucket is located
region:
# AWS secret access key
secretAccessKey:
# AWS access key ID
accessKeyId:
# AWS signature version (e.g., v2 or v4)
signatureVersion:
# Forces the path style for S3 (true/false)
s3ForcePathStyle: false
# Allows insecure (HTTP) connections (true/false)
insecure: false
# HTTP configuration settings
http_config: {}

deploymentMode: Distributed

Disable minio storage

minio:
enabled: false

ingester:
replicas: 3
querier:
replicas: 3
maxUnavailable: 2
queryFrontend:
replicas: 2
maxUnavailable: 1
queryScheduler:
replicas: 2
distributor:
replicas: 3
maxUnavailable: 2
compactor:
replicas: 1
indexGateway:
replicas: 2
maxUnavailable: 1

bloomPlanner:
replicas: 0
bloomBuilder:
replicas: 0
bloomGateway:
replicas: 0

backend:
replicas: 0
read:
replicas: 0
write:
replicas: 0

singleBinary:
replicas: 0`

I also tried to download the chart package to my server and install it with the helm install loki -f values.yaml.-n loki command, but I also got an error.
This is why?
The chart package I use is downloaded from github.
wget https://github.com/grafana/helm-charts/releases/download/helm-loki-6.23.0/loki-6.23.0.tgz

Image

@JStickler
Copy link
Contributor

JStickler commented Dec 16, 2024

The documentation page that you linked to appears to be a simplified Chinese translation, so I have no idea 1) what it says or 2) what version of Loki it refers to or 3) when it was created or updated. However, I'll do my best to help.

If you've got a read, write and backend as part of your deployment, you've probably installed using the Helm charts default, which is simple, scalable deployment (SSD), and not distributed mode.

Check the values.yaml file and see if it is set to deploymentMode: SimpleScalable.

@sunwenbo
Copy link
Author

The documentation page that you linked to appears to be a simplified Chinese translation, so I have no idea 1) what it says or 2) what version of Loki it refers to or 3) when it was created or updated. However, I'll do my best to help.

If you've got a read, write and backend as part of your deployment, you've probably installed using the Helm charts default, which is simple, scalable deployment (SSD), and not distributed mode.

Check the values.yaml file and see if it is set to deploymentMode: SimpleScalable.

Thanks for your reply!
I want to express that the result after I deployed loki cluster in distributed mode according to the document installed on the official website is inconsistent with the document
The document address: https://grafana.com/docs/loki/latest/setup/install/helm/install-microservices/
I wonder if anyone else has the same problem?

I am now trying to install and deploy using loki-distributed chart
chart version: 0.80.0
appVersion: 2.9.10

@sunwenbo
Copy link
Author

The documentation page that you linked to appears to be a simplified Chinese translation, so I have no idea 1) what it says or 2) what version of Loki it refers to or 3) when it was created or updated. However, I'll do my best to help.

If you've got a read, write and backend as part of your deployment, you've probably installed using the Helm charts default, which is simple, scalable deployment (SSD), and not distributed mode.

Check the values.yaml file and see if it is set to deploymentMode: SimpleScalable.

I've been able to run successfully, thanks for the support

@JStickler
Copy link
Contributor

@sunwenbo , can we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants