Skip to content

Commit

Permalink
Merge pull request #286 from douglascamata/store-livenes-probe-config
Browse files Browse the repository at this point in the history
Store: make the liveness probe timeout configurable
  • Loading branch information
yeya24 committed Oct 11, 2022
2 parents e57d153 + 449e423 commit 5c8b734
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel

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

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
grpc: 10901,
http: 10902,
},
livenessProbe: {
timeoutSeconds: 1,
failureThreshold: 8,
periodSeconds: 30,
},
tracing: {},
minTime: '',
maxTime: '',
Expand Down
15 changes: 10 additions & 5 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,16 @@ function(params) {
{ name: 'tls-secret', mountPath: ts.config.objectStorageConfig.tlsSecretMountPath },
] else []
),
livenessProbe: { failureThreshold: 8, periodSeconds: 30, httpGet: {
scheme: 'HTTP',
port: ts.config.ports.http,
path: '/-/healthy',
} },
livenessProbe: {
failureThreshold: ts.config.livenessProbe.failureThreshold,
periodSeconds: ts.config.livenessProbe.periodSeconds,
timeoutSeconds: ts.config.livenessProbe.timeoutSeconds,
httpGet: {
scheme: 'HTTP',
port: ts.config.ports.http,
path: '/-/healthy',
},
},
readinessProbe: { failureThreshold: 20, periodSeconds: 5, httpGet: {
scheme: 'HTTP',
port: ts.config.ports.http,
Expand Down
1 change: 1 addition & 0 deletions manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901
Expand Down

0 comments on commit 5c8b734

Please sign in to comment.