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

feat(loki): switch to single binary deployment mode #3318

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ datasources:
- name: Loki
type: loki
access: proxy
url: http://loki-gateway:80/
url: http://loki:3100/
- name: GitHub
type: grafana-github-datasource
jsonData:
Expand Down
46 changes: 19 additions & 27 deletions kubernetes/talos-flux/apps/observability/loki/app/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
# https://artifacthub.io/packages/helm/grafana/loki?modal=values
# https://github.com/grafana/loki/blob/main/production/helm/loki/values.yaml
values:
deploymentMode: SimpleScalable
deploymentMode: SingleBinary
loki:
podAnnotations:
secret.reloader.stakater.com/reload: loki-s3
Expand Down Expand Up @@ -72,32 +72,12 @@ spec:
insecure: false
s3ForcePathStyle: true

gateway:
image:
registry: ghcr.io
replicas: 2
ingress:
# use dedicated ingress definition
enabled: false
service:
labels:
prometheus.io/service-monitor: "false"

write:
replicas: 2
persistence:
size: 20Gi
storageClass: openebs-hostpath

read:
replicas: 2
extraVolumes:
- name: loki-rules
configMap:
name: loki-alerting-rules

backend:
singleBinary:
replicas: 2
resources:
requests:
cpu: 10m
memory: 100Mi
extraVolumes:
- name: loki-rules
configMap:
Expand All @@ -111,6 +91,18 @@ spec:
searchNamespace: ALL
folder: /rules/fake

backend:
replicas: 0
read:
replicas: 0
write:
replicas: 0
gateway:
enabled: false
chunksCache:
enabled: false
resultsCache:
enabled: false
lokiCanary:
enabled: false
test:
Expand All @@ -126,7 +118,7 @@ spec:
serviceMonitor:
enabled: true
metricsInstance:
enabled: false
enabled: true

valuesFrom:
- kind: Secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:

config:
clients:
- url: http://loki-gateway/loki/api/v1/push
- url: http://loki/loki/api/v1/push
- url: "https://${SECRET_GRAFANA_CLOUD_INSTANCE_ID}:${SECRET_GRAFANA_CLOUD_API_KEY}@logs-prod-us-central1.grafana.net/loki/api/v1/push"
serviceMonitor:
enabled: true
Expand Down