diff --git a/operations/helm/charts/alloy/CHANGELOG.md b/operations/helm/charts/alloy/CHANGELOG.md index ae34ac4ecb..cb8e77e0c5 100644 --- a/operations/helm/charts/alloy/CHANGELOG.md +++ b/operations/helm/charts/alloy/CHANGELOG.md @@ -7,6 +7,13 @@ This document contains a historical list of changes between releases. Only changes that impact end-user behavior are listed; changes to documentation or internal API changes are not present. +X.X.X +---------- + +### Enhancements + +- Add support for configuring minReadySeconds in Helm chart. (@PabloPie) + 0.11.0 (2025-01-23) ---------- diff --git a/operations/helm/charts/alloy/README.md b/operations/helm/charts/alloy/README.md index a486413f3b..0b73af3ace 100644 --- a/operations/helm/charts/alloy/README.md +++ b/operations/helm/charts/alloy/README.md @@ -87,6 +87,7 @@ useful if just using the default DaemonSet isn't sufficient. | controller.initContainers | list | `[]` | | | controller.nodeSelector | object | `{}` | nodeSelector to apply to Grafana Alloy pods. | | controller.parallelRollout | bool | `true` | Whether to deploy pods in parallel. Only used when controller.type is 'statefulset'. | +| controller.minReadySeconds | int | `10` | How many additional seconds to wait before considering a pod ready. | | controller.podAnnotations | object | `{}` | Extra pod annotations to add. | | controller.podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":null,"minAvailable":null}` | PodDisruptionBudget configuration. | | controller.podDisruptionBudget.enabled | bool | `false` | Whether to create a PodDisruptionBudget for the controller. | diff --git a/operations/helm/charts/alloy/templates/controllers/daemonset.yaml b/operations/helm/charts/alloy/templates/controllers/daemonset.yaml index 2f80948c21..c0ede4d687 100644 --- a/operations/helm/charts/alloy/templates/controllers/daemonset.yaml +++ b/operations/helm/charts/alloy/templates/controllers/daemonset.yaml @@ -11,7 +11,7 @@ metadata: {{- end }} spec: {{- if ge (int .Capabilities.KubeVersion.Minor) 22 }} - minReadySeconds: 10 + minReadySeconds: {{ .Values.controller.minReadySeconds }} {{- end }} selector: matchLabels: diff --git a/operations/helm/charts/alloy/templates/controllers/deployment.yaml b/operations/helm/charts/alloy/templates/controllers/deployment.yaml index 8e748cac59..5e9b8303d6 100644 --- a/operations/helm/charts/alloy/templates/controllers/deployment.yaml +++ b/operations/helm/charts/alloy/templates/controllers/deployment.yaml @@ -14,7 +14,7 @@ spec: replicas: {{ .Values.controller.replicas }} {{- end }} {{- if ge (int .Capabilities.KubeVersion.Minor) 22 }} - minReadySeconds: 10 + minReadySeconds: {{ .Values.controller.minReadySeconds }} {{- end }} selector: matchLabels: diff --git a/operations/helm/charts/alloy/templates/controllers/statefulset.yaml b/operations/helm/charts/alloy/templates/controllers/statefulset.yaml index 2c4b1b6f01..49b56bcad6 100644 --- a/operations/helm/charts/alloy/templates/controllers/statefulset.yaml +++ b/operations/helm/charts/alloy/templates/controllers/statefulset.yaml @@ -20,7 +20,7 @@ spec: podManagementPolicy: Parallel {{- end }} {{- if ge (int .Capabilities.KubeVersion.Minor) 22 }} - minReadySeconds: 10 + minReadySeconds: {{ .Values.controller.minReadySeconds }} {{- end }} serviceName: {{ include "alloy.fullname" . }} selector: diff --git a/operations/helm/charts/alloy/values.yaml b/operations/helm/charts/alloy/values.yaml index 9ae5dc3fe5..f69e8fcded 100644 --- a/operations/helm/charts/alloy/values.yaml +++ b/operations/helm/charts/alloy/values.yaml @@ -188,6 +188,9 @@ controller: # 'statefulset'. parallelRollout: true + # -- How many additional seconds to wait before considering a pod ready. + minReadySeconds: 10 + # -- Configures Pods to use the host network. When set to true, the ports that will be used must be specified. hostNetwork: false