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

fix(edge): Fixes enterprise helm chart to allow config of livenessProbe #671

Merged
merged 7 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
2 changes: 1 addition & 1 deletion charts/influxdb-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 0.1.22
version: 0.1.24
devanbenz marked this conversation as resolved.
Show resolved Hide resolved
appVersion: 1.10.0
engine: gotpl

Expand Down
1 change: 1 addition & 0 deletions charts/influxdb-enterprise/templates/data-statefulset.yaml
Copy link
Member

@jdockerty jdockerty Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the same also need to be placed onto the meta nodes too?

Perhaps that wasn't the original ask, but a slight rejig to allowing something like:

# values.yaml
data:
  livenessProbe:
     ...

meta:
  livenessProbe:
    ...

might be quite worthwhile? I'm not authoritative on this though of course 😄


For reference, as the livenessProbe field exists in both files:

rg "livenessProbe" templates -l
templates/meta-statefulset.yaml
templates/data-statefulset.yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll go ahead and add to the meta nodes too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdockerty should I be splitting up the livenessProbe or maybe just have a single value in the helm chart? If customers indicate they want it split we can do so but as of right now I think the customer is just wanting to adjust the data nodes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

customer is just wanting to adjust the data nodes

In this case I think going to satisfy what a customer wants is fine, as it is a quick win, although it isn't my call too unfortunately. Might be worth checking with Geoffrey on that one 😄

Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ spec:
port: http
{{- if .Values.data.https.enabled }}
scheme: HTTPS
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 3600 }}
{{- end }}
readinessProbe:
initialDelaySeconds: 30
Expand Down
1 change: 1 addition & 0 deletions charts/influxdb-enterprise/templates/meta-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ spec:
port: http
{{- if .Values.meta.https.enabled }}
scheme: HTTPS
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 3600 }}
{{- end }}
readinessProbe:
httpGet:
Expand Down
5 changes: 5 additions & 0 deletions charts/influxdb-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ serviceAccount:
name: ''
annotations: {}

## Customize liveness, readiness and startup probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe: {}
# initialDelaySeconds: 3600

## The name of a secret in the same kubernetes namespace which contain values
## to be added to the environment.
## This can be used, for example, to set the INFLUXDB_ENTERPRISE_LICENSE_KEY
Expand Down
Loading