Skip to content

Commit

Permalink
[prometheus-adapter] Allow configuration of startupProbe (prometheus-…
Browse files Browse the repository at this point in the history
…community#3811)

Signed-off-by: Kevin Mo <kevin.mo@frontapp.com>
Co-authored-by: Steven Sheehy <17552371+steven-sheehy@users.noreply.github.com>
  • Loading branch information
kevinmo13 and steven-sheehy authored Oct 3, 2023
1 parent 162e6be commit 272301a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-adapter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: prometheus-adapter
version: 4.6.0
version: 4.7.0
appVersion: v0.11.1
description: A Helm chart for k8s prometheus adapter
home: https://github.com/kubernetes-sigs/prometheus-adapter
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-adapter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.startupProbe }}
startupProbe:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ readinessProbe:
initialDelaySeconds: 30
timeoutSeconds: 5

# Configure startup probe
# Use if prometheus-adapter takes a long time to finish startup e.g. polling a lot of API versions in cluster
startupProbe: {}

rules:
default: true

Expand Down

0 comments on commit 272301a

Please sign in to comment.