Skip to content

Commit

Permalink
The query-tee node port is now optional (#3272)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>

Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Oct 21, 2022
1 parent 31d9b85 commit 35d35d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

### Jsonnet

* [ENHANCEMENT] The query-tee node port (`$._config.query_tee_node_port`) is now optional. #3272
* [BUGFIX] Fixed query-scheduler ring configuration for dedicated ruler's queries and query-frontends. #3237 #3239

### Mimirtool
Expand Down
1 change: 1 addition & 0 deletions operations/mimir/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
query_tee_enabled: false,
query_tee_backend_endpoints: [],
query_tee_backend_preferred: '',
query_tee_node_port: null,

grpcConfig:: {
'server.grpc.keepalive.min-time-between-pings': '10s',
Expand Down
2 changes: 1 addition & 1 deletion operations/mimir/query-tee.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
query_tee_service: if !($._config.query_tee_enabled) then {} else
service.new('query-tee', { name: 'query-tee' }, [
servicePort.newNamed('http', 80, 80) +
servicePort.withNodePort($._config.query_tee_node_port),
(if $._config.query_tee_node_port == null then {} else servicePort.withNodePort($._config.query_tee_node_port)),
]) +
service.mixin.spec.withType('NodePort'),
}

0 comments on commit 35d35d2

Please sign in to comment.