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 termination message policy to containers #103

Merged
merged 1 commit into from
Feb 24, 2020
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
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-bucket-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
terminationGracePeriodSeconds: 120
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-compact-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/compact
name: data
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ spec:
port: 9090
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
terminationGracePeriodSeconds: 120
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-receive-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/receive
name: data
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-rule-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ spec:
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/rule
name: data
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 @@ -59,6 +59,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/store
name: data
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-bucket.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

local c =
container.new('thanos-bucket', tb.config.image) +
container.withTerminationMessagePolicy('FallbackToLogsOnError') +
container.withArgs([
'bucket',
'web',
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-compact.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

local c =
container.new('thanos-compact', tc.config.image) +
container.withTerminationMessagePolicy('FallbackToLogsOnError') +
container.withArgs([
'compact',
'--wait',
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

local c =
container.new('thanos-query', tq.config.image) +
container.withTerminationMessagePolicy('FallbackToLogsOnError') +
container.withArgs([
'query',
'--grpc-address=0.0.0.0:%d' % tq.service.spec.ports[0].port,
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

local c =
container.new('thanos-receive', tr.config.image) +
container.withTerminationMessagePolicy('FallbackToLogsOnError') +
container.withArgs([
'receive',
'--grpc-address=0.0.0.0:%d' % tr.service.spec.ports[0].port,
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-rule.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

local c =
container.new('thanos-rule', tr.config.image) +
container.withTerminationMessagePolicy('FallbackToLogsOnError') +
container.withArgs(
[
'rule',
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

local c =
container.new('thanos-store', ts.config.image) +
container.withTerminationMessagePolicy('FallbackToLogsOnError') +
container.withArgs([
'store',
'--data-dir=/var/thanos/store',
Expand Down
1 change: 1 addition & 0 deletions manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ spec:
port: 9090
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
terminationGracePeriodSeconds: 120
1 change: 1 addition & 0 deletions manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/store
name: data
Expand Down