Skip to content

Commit 4ab42ad

Browse files
authored
receive: Expose minReadySeconds as config (#301)
* receive: Expose minReadySeconds as config Signed-off-by: Philip Gough <philip.p.gough@gmail.com> * docs: Add changelog for minReadySeconds to receiver sts Signed-off-by: Philip Gough <philip.p.gough@gmail.com> --------- Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
1 parent 3291d85 commit 4ab42ad

7 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
2828
- [#286](https://github.com/thanos-io/kube-thanos/pull/286) Store: make the liveness probe timeout configurable.
2929
- [#292](https://github.com/thanos-io/kube-thanos/pull/292) Store: allow configuration of series, series sample, and downloaded bytes limits.
3030
- [#299](https://github.com/thanos-io/kube-thanos/pull/299) Query: allow configuration of telemetry.request options
31+
- [#301](https://github.com/thanos-io/kube-thanos/pull/301) Receive: allow configuration of `minReadySeconds` for StatefulSet
3132

3233
### Fixed
3334

examples/all/manifests/thanos-receive-default-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
name: thanos-receive-default
1212
namespace: thanos
1313
spec:
14+
minReadySeconds: 0
1415
replicas: 3
1516
selector:
1617
matchLabels:

examples/all/manifests/thanos-receive-region-1-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
name: thanos-receive-region-1
1212
namespace: thanos
1313
spec:
14+
minReadySeconds: 0
1415
replicas: 3
1516
selector:
1617
matchLabels:

examples/all/manifests/thanos-receive-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
name: thanos-receive
1010
namespace: thanos
1111
spec:
12+
minReadySeconds: 0
1213
replicas: 1
1314
selector:
1415
matchLabels:

jsonnet/kube-thanos/kube-thanos-receive-default-params.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
image: error 'must provide image',
1010
imagePullPolicy: 'IfNotPresent',
1111
replicas: error 'must provide replicas',
12+
minReadySeconds: 0,
1213
replicationFactor: error 'must provide replication factor',
1314
objectStorageConfig: error 'must provide objectStorageConfig',
1415
podDisruptionBudgetMaxUnavailable: (std.floor(defaults.replicationFactor / 2)),

jsonnet/kube-thanos/kube-thanos-receive.libsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function(params) {
1212
assert std.isBoolean(tr.config.serviceMonitor),
1313
assert std.isObject(tr.config.volumeClaimTemplate),
1414
assert !std.objectHas(tr.config.volumeClaimTemplate, 'spec') || std.assertEqual(tr.config.volumeClaimTemplate.spec.accessModes, ['ReadWriteOnce']) : 'thanos receive PVC accessMode can only be ReadWriteOnce',
15+
assert std.isNumber(tr.config.minReadySeconds),
1516

1617
service: {
1718
apiVersion: 'v1',
@@ -164,6 +165,7 @@ function(params) {
164165
},
165166
spec: {
166167
replicas: tr.config.replicas,
168+
minReadySeconds: tr.config.minReadySeconds,
167169
selector: { matchLabels: tr.config.podLabelSelector },
168170
serviceName: tr.service.metadata.name,
169171
template: {

manifests/thanos-receive-ingestor-default-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
name: thanos-receive-ingestor-default
1212
namespace: thanos
1313
spec:
14+
minReadySeconds: 0
1415
replicas: 1
1516
selector:
1617
matchLabels:

0 commit comments

Comments
 (0)