Skip to content

Commit

Permalink
[IPROD-563] Make loki run on monitoring nodes (#210)
Browse files Browse the repository at this point in the history
* add monitoring workload label

* add node affinities for different components

* added a comment
  • Loading branch information
muzammil360 authored Apr 9, 2024
1 parent d322d62 commit b918ac2
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
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

0 comments on commit b918ac2

Please sign in to comment.