Skip to content

Commit

Permalink
Merge pull request #375 from grafana/add-functions-to-create-query-sc…
Browse files Browse the repository at this point in the history
…heduler-deployment

Added function to create query-scheduler deployment
  • Loading branch information
pracucci authored Aug 24, 2021
2 parents 3f2aa73 + d0bedeb commit 674a170
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cortex/query-scheduler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
$.util.resourcesRequests('2', '1Gi') +
$.util.resourcesLimits(null, '2Gi'),


query_scheduler_deployment: if !$._config.query_scheduler_enabled then {} else
deployment.new('query-scheduler', 2, [$.query_scheduler_container]) +
newQuerySchedulerDeployment(name, container)::
deployment.new(name, 2, [container]) +
$.util.configVolumeMount('overrides', '/etc/cortex') +
$.util.antiAffinity,

query_scheduler_deployment: if !$._config.query_scheduler_enabled then {} else
self.newQuerySchedulerDeployment('query-scheduler', $.query_scheduler_container),

query_scheduler_service: if !$._config.query_scheduler_enabled then {} else
$.util.serviceFor($.query_scheduler_deployment),

Expand Down

0 comments on commit 674a170

Please sign in to comment.