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 possibility to set priorityClassName on InfluxDB Pod via Helmchart #646

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion charts/influxdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: influxdb
version: 4.12.5
version: 4.12.6
appVersion: 1.8.10
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
Expand Down
1 change: 1 addition & 0 deletions charts/influxdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ The following table lists configurable parameters, their descriptions, and their
| persistence.size | Storage size | 8Gi |
| podAnnotations | Annotations for pod | {} |
| podLabels | Labels for pod | {} |
| priorityClassName | PriorityClass configuration for InfluxDB Pods | "" |
| ingress.enabled | Boolean flag to enable or disable ingress | false |
| ingress.tls | Boolean to enable or disable tls for ingress. If enabled provide a secret in `ingress.secretName` containing TLS private key and certificate. | false |
| ingress.secretName | Kubernetes secret containing TLS private key and certificate. It is `only` required if `ingress.tls` is enabled. | nil |
Expand Down
3 changes: 3 additions & 0 deletions charts/influxdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
Expand Down
4 changes: 4 additions & 0 deletions charts/influxdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ podAnnotations: {}
# Labels to be added to InfluxDB pods
podLabels: {}

## Configure priorityClass for InfluxDB Statefulset
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""

ingress:
enabled: false
tls: false
Expand Down
2 changes: 1 addition & 1 deletion charts/influxdb2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: influxdb2
description: A Helm chart for InfluxDB v2
home: https://www.influxdata.com/products/influxdb/
type: application
version: 2.1.2
version: 2.1.3
maintainers:
- name: rawkode
email: [email protected]
Expand Down
3 changes: 3 additions & 0 deletions charts/influxdb2/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ spec:
securityContext:
fsGroup: {{ .Values.securityContext.runAsGroup }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | nindent 8 | trim }}
Expand Down
4 changes: 4 additions & 0 deletions charts/influxdb2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ startupProbe:
# key: my-key
env: {}

## Configure priorityClass for InfluxDB Statefulset
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""

## Create default user through docker entrypoint
## Defaults indicated below
##
Expand Down