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

Add ingester PDB to jsonnet #1691

Merged
merged 7 commits into from
Aug 26, 2022
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
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
## main / unreleased

* [CHANGE] tempo: check configuration returns now a list of warnings [#1663](https://github.com/grafana/tempo/pull/1663) (@frzifus)
* [CHANGE] Make DNS address fully qualified to reduce DNS lookups in Kubernetes [#1687](https://github.com/grafana/tempo/pull/1687) (@electron0zero)
* [CHANGE] Improve parquet compaction memory profile when dropping spans [#1692](https://github.com/grafana/tempo/pull/1692) (@joe-elliott)
* [CHANGE] Increase default values for `server.grpc_server_max_recv_msg_size` and `server.grpc_server_max_send_msg_size` from 4MB to 16MB [#1688](https://github.com/grafana/tempo/pull/1688) (@mapno)
* [ENHANCEMENT] metrics-generator: expose span size as a metric [#1662](https://github.com/grafana/tempo/pull/1662) (@ie-pham)
* [ENHANCEMENT] Set Max Idle connections to 100 for Azure, should reduce DNS errors in Azure [#1632](https://github.com/grafana/tempo/pull/1632) (@electron0zero)
* [CHANGE] Make DNS address fully qualified to reduce DNS lookups in Kubernetes [#1687](https://github.com/grafana/tempo/pull/1687) (@electron0zero)
* [CHANGE] Improve parquet compaction memory profile when dropping spans [#1692](https://github.com/grafana/tempo/pull/1692) (@joe-elliott)
* [ENHANCEMENT] Add PodDisruptionBudget to ingesters in jsonnet [#1691](https://github.com/grafana/tempo/pull/1691) (@joe-elliott)

## v1.5.0 / 2022-08-17

Expand Down
4 changes: 4 additions & 0 deletions example/tk/tempo-microservices/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ minio + metrics + load + tempo {
},
},
},
metrics_generator+: {
ephemeral_storage_limit_size: '2Gi',
ephemeral_storage_request_size: '1Gi',
},
memcached+: {
replicas: 1,
},
Expand Down
12 changes: 12 additions & 0 deletions operations/jsonnet-compiled/PodDisruptionBudget-ingester.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
labels:
name: ingester
name: ingester
namespace: tracing
spec:
maxUnavailable: 1
selector:
matchLabels:
name: ingester
8 changes: 8 additions & 0 deletions operations/jsonnet/microservices/ingester.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,12 @@
servicePort.withProtocol('TCP'),
],
) + service.mixin.spec.withClusterIp('None'), // headless service

local podDisruptionBudget = k.policy.v1beta1.podDisruptionBudget,
ingester_pdb:
podDisruptionBudget.new() +
podDisruptionBudget.mixin.metadata.withName(target_name) +
podDisruptionBudget.mixin.metadata.withLabels({ name: target_name }) +
podDisruptionBudget.mixin.spec.selector.withMatchLabels({ name: target_name }) +
podDisruptionBudget.mixin.spec.withMaxUnavailable(1),
}