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

Support for snuba additional arguments, livenessProbe & readinessProbe #1078

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
2 changes: 1 addition & 1 deletion sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v3
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 21.0.0
version: 21.0.1
appVersion: 23.11.2
dependencies:
- name: memcached
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ spec:
{{- if .Values.snuba.consumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.consumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.consumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.consumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.genericMetricsCountersConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.genericMetricsCountersConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.genericMetricsCountersConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.genericMetricsCountersConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.genericMetricsDistributionConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.genericMetricsDistributionConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.genericMetricsDistributionConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.genericMetricsDistributionConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.genericMetricsSetsConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.genericMetricsSetsConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.genericMetricsSetsConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.genericMetricsSetsConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-issue-occurrence-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.issueOccurrenceConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.issueOccurrenceConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.issueOccurrenceConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.issueOccurrenceConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-metrics-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.metricsConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.metricsConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.metricsConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.metricsConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-outcomes-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@ spec:
{{- if .Values.snuba.outcomesConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.outcomesConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.outcomesConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.outcomesConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ spec:
{{- if .Values.snuba.profilingFunctionsConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.profilingFunctionsConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.profilingFunctionsConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.profilingFunctionsConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-profiling-profiles-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ spec:
{{- if .Values.snuba.profilingProfilesConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.profilingProfilesConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.profilingProfilesConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.profilingProfilesConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-replays-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.replaysConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.replaysConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.replaysConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.replaysConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ spec:
- "--followed-consumer-group=snuba-consumers"
- "--schedule-ttl=60"
- "--stale-threshold-seconds=900"
{{- range .Values.snuba.subscriptionConsumerEvents.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.subscriptionConsumerEvents.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.subscriptionConsumerEvents.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ spec:
- "--followed-consumer-group=snuba-metrics-consumers"
- "--schedule-ttl=60"
- "--stale-threshold-seconds=900"
{{- range .Values.snuba.subscriptionConsumerMetrics.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.subscriptionConsumerMetrics.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.subscriptionConsumerMetrics.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ spec:
- "--followed-consumer-group=transactions_group"
- "--schedule-ttl=60"
- "--stale-threshold-seconds=900"
{{- range .Values.snuba.subscriptionConsumerTransactions.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.subscriptionConsumerTransactions.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.subscriptionConsumerTransactions.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
11 changes: 11 additions & 0 deletions sentry/templates/deployment-snuba-transactions-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ spec:
{{- if .Values.snuba.transactionsConsumer.noStrictOffsetReset }}
- "--no-strict-offset-reset"
{{- end }}
{{- range .Values.snuba.transactionsConsumer.additionalArgs}}
- "{{ . }}"
{{- end}}
{{- with .Values.snuba.transactionsConsumer.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
{{- with .Values.snuba.transactionsConsumer.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end}}
ports:
- containerPort: {{ template "snuba.port" }}
env:
Expand Down
Loading
Loading