Skip to content

Commit 5c8b734

Browse files
authored
Merge pull request #286 from douglascamata/store-livenes-probe-config
Store: make the liveness probe timeout configurable
2 parents e57d153 + 449e423 commit 5c8b734

8 files changed

+21
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
2424

2525
- [#263](https://github.com/thanos-io/kube-thanos/pull/263) Add support for stateless Rulers.
2626
- [#271](https://github.com/thanos-io/kube-thanos/pull/271) Add annotation support for ServiceAccount.
27+
- [#286](https://github.com/thanos-io/kube-thanos/pull/286) Store: make the liveness probe timeout configurable.
2728

2829
### Fixed
2930

examples/all/manifests/thanos-store-shard0-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ spec:
124124
port: 10902
125125
scheme: HTTP
126126
periodSeconds: 30
127+
timeoutSeconds: 1
127128
name: thanos-store
128129
ports:
129130
- containerPort: 10901

examples/all/manifests/thanos-store-shard1-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ spec:
124124
port: 10902
125125
scheme: HTTP
126126
periodSeconds: 30
127+
timeoutSeconds: 1
127128
name: thanos-store
128129
ports:
129130
- containerPort: 10901

examples/all/manifests/thanos-store-shard2-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ spec:
124124
port: 10902
125125
scheme: HTTP
126126
periodSeconds: 30
127+
timeoutSeconds: 1
127128
name: thanos-store
128129
ports:
129130
- containerPort: 10901

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
port: 10902
113113
scheme: HTTP
114114
periodSeconds: 30
115+
timeoutSeconds: 1
115116
name: thanos-store
116117
ports:
117118
- containerPort: 10901

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
grpc: 10901,
2323
http: 10902,
2424
},
25+
livenessProbe: {
26+
timeoutSeconds: 1,
27+
failureThreshold: 8,
28+
periodSeconds: 30,
29+
},
2530
tracing: {},
2631
minTime: '',
2732
maxTime: '',

jsonnet/kube-thanos/kube-thanos-store.libsonnet

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,16 @@ function(params) {
135135
{ name: 'tls-secret', mountPath: ts.config.objectStorageConfig.tlsSecretMountPath },
136136
] else []
137137
),
138-
livenessProbe: { failureThreshold: 8, periodSeconds: 30, httpGet: {
139-
scheme: 'HTTP',
140-
port: ts.config.ports.http,
141-
path: '/-/healthy',
142-
} },
138+
livenessProbe: {
139+
failureThreshold: ts.config.livenessProbe.failureThreshold,
140+
periodSeconds: ts.config.livenessProbe.periodSeconds,
141+
timeoutSeconds: ts.config.livenessProbe.timeoutSeconds,
142+
httpGet: {
143+
scheme: 'HTTP',
144+
port: ts.config.ports.http,
145+
path: '/-/healthy',
146+
},
147+
},
143148
readinessProbe: { failureThreshold: 20, periodSeconds: 5, httpGet: {
144149
scheme: 'HTTP',
145150
port: ts.config.ports.http,

manifests/thanos-store-statefulSet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ spec:
7171
port: 10902
7272
scheme: HTTP
7373
periodSeconds: 30
74+
timeoutSeconds: 1
7475
name: thanos-store
7576
ports:
7677
- containerPort: 10901

0 commit comments

Comments
 (0)