mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
[bitnami/influxdb] Enable PodDisruptionBudgets (#26491)
* [bitnami/influxdb] Enable PodDisruptionBudgets Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Fran Mulero <fmulero@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 6.2.1 (2024-05-28)
|
||||
## 6.3.0 (2024-05-29)
|
||||
|
||||
* [bitnami/influxdb] Release 6.2.1 ([#26511](https://github.com/bitnami/charts/pull/26511))
|
||||
* [bitnami/influxdb] Enable PodDisruptionBudgets ([#26491](https://github.com/bitnami/charts/pull/26491))
|
||||
|
||||
## <small>6.2.1 (2024-05-28)</small>
|
||||
|
||||
* [bitnami/influxdb] Release 6.2.1 (#26511) ([b5b3bfc](https://github.com/bitnami/charts/commit/b5b3bfc36967ed57c72266dc7fda45e863035eeb)), closes [#26511](https://github.com/bitnami/charts/issues/26511)
|
||||
|
||||
## 6.2.0 (2024-05-27)
|
||||
|
||||
|
||||
@@ -37,4 +37,4 @@ maintainers:
|
||||
name: influxdb
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/influxdb
|
||||
version: 6.2.1
|
||||
version: 6.3.0
|
||||
|
||||
@@ -267,6 +267,9 @@ There are K8s distribution, such as OpenShift, where you can dynamically define
|
||||
| `influxdb.customReadinessProbe` | Override default readiness probe | `{}` |
|
||||
| `influxdb.sidecars` | Add additional sidecar containers to the InfluxDB™ pod(s) | `[]` |
|
||||
| `influxdb.initContainers` | Add additional init containers to the InfluxDB™ pod(s) | `[]` |
|
||||
| `influxdb.pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
|
||||
| `influxdb.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
|
||||
| `influxdb.pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `influxdb.pdb.minAvailable` and `influxdb.pdb.maxUnavailable` are empty. | `""` |
|
||||
| `influxdb.service.type` | Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`) | `ClusterIP` |
|
||||
| `influxdb.service.ports.http` | InfluxDB™ HTTP port | `8086` |
|
||||
| `influxdb.service.ports.rpc` | InfluxDB™ RPC port | `8088` |
|
||||
|
||||
28
bitnami/influxdb/templates/pdb.yaml
Normal file
28
bitnami/influxdb/templates/pdb.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
{{- /*
|
||||
Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if .Values.influxdb.pdb.create }}
|
||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ include "common.names.fullname" . }}
|
||||
namespace: {{ include "common.names.namespace" . | quote }}
|
||||
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
app.kubernetes.io/component: influxdb
|
||||
{{- if .Values.commonAnnotations }}
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.influxdb.pdb.minAvailable }}
|
||||
minAvailable: {{ .Values.influxdb.pdb.minAvailable }}
|
||||
{{- end }}
|
||||
{{- if or .Values.influxdb.pdb.maxUnavailable ( not .Values.influxdb.pdb.minAvailable ) }}
|
||||
maxUnavailable: {{ .Values.influxdb.pdb.maxUnavailable | default 1 }}
|
||||
{{- end }}
|
||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.influxdb.podLabels .Values.commonLabels ) "context" . ) }}
|
||||
selector:
|
||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
||||
app.kubernetes.io/component: influxdb
|
||||
{{- end }}
|
||||
@@ -443,6 +443,16 @@ influxdb:
|
||||
## command: ['sh', '-c', 'echo "hello world"']
|
||||
##
|
||||
initContainers: []
|
||||
## Pod Disruption Budget configuration
|
||||
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
|
||||
## @param influxdb.pdb.create Enable/disable a Pod Disruption Budget creation
|
||||
## @param influxdb.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
|
||||
## @param influxdb.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `influxdb.pdb.minAvailable` and `influxdb.pdb.maxUnavailable` are empty.
|
||||
##
|
||||
pdb:
|
||||
create: true
|
||||
minAvailable: ""
|
||||
maxUnavailable: ""
|
||||
## Service parameters
|
||||
##
|
||||
service:
|
||||
|
||||
Reference in New Issue
Block a user