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

[IPROD-563] Make loki run on monitoring nodes #210

Merged
merged 3 commits into from
Apr 9, 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 @@ -13,12 +13,66 @@ loki:
access_key_id: $${MINIO_LOKI_USERNAME}
secret_access_key: $${MINIO_LOKI_PASSWORD}
bucketnames: ${minio_loki_bucket}

# NOTE: make sure all components which are running have node affinity enabled for monitoring nodes
ingester:
persistence:
size: ${loki_ingester_pvc_size}
storageClass: ${storage_class_name}
extraArgs: ["-config.expand-env"]
extraEnvVarsSecret: ${minio_credentials_secret_name}
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
compactor:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
distributor:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
gateway:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
querier:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
queryFrontend:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]

memcachedchunks:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
memcachedfrontend:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
memcachedindexqueries:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]
memcachedindexwrites:
nodeAffinityPreset:
type: hard
key: workload-class.mojaloop.io/MONITORING
values: ["enabled"]



promtail:
# reference: https://github.com/bitnami/charts/blob/5f843aec99a13573f67e59b5e3193916ca01f308/bitnami/grafana-loki/values.yaml#L4440
Expand Down
1 change: 1 addition & 0 deletions terraform/k8s/default-config/cluster-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ nodes:
workload-class.mojaloop.io/KAFKA-DATA-PLANE: "enabled"
workload-class.mojaloop.io/RDBMS-CENTRAL-LEDGER-LIVE: "enabled"
workload-class.mojaloop.io/RDBMS-ALS-LIVE: "enabled"
workload-class.mojaloop.io/MONITORING: "enabled"
vpc_cidr: "10.106.0.0/23"
enable_k6s_test_harness: false
k6s_docker_server_instance_type: "m5.large"
Expand Down