Skip to content

Commit

Permalink
vlogs: added updateStrategy management
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Jan 20, 2025
1 parent e8c7b26 commit 48eb74b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/victoria-logs-single/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- Added `.Values.statefulSet.updateStrategy`. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1928) for details.

## 0.8.13

Expand Down
11 changes: 11 additions & 0 deletions charts/victoria-logs-single/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,17 @@ readOnlyRootFilesystem: true
</pre>
</td>
<td><p>Deploy order policy for StatefulSet pods</p>
</td>
</tr>
<tr>
<td>server.statefulSet.updateStrategy</td>
<td>object</td>
<td><pre class="helm-vars-default-value language-yaml" lang="plaintext">
<code class="language-yaml">{}
</code>
</pre>
</td>
<td><p>StatefulSet update strategy. Check <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies" target="_blank">here</a> for details.</p>
</td>
</tr>
<tr>
Expand Down
3 changes: 3 additions & 0 deletions charts/victoria-logs-single/templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
selector:
matchLabels: {{ include "vm.selectorLabels" $ctx | nindent 6 }}
replicas: {{ $app.replicaCount }}
{{- with $app.statefulSet.updateStrategy }}
updateStrategy: {{ toYaml . | nindent 4 }}
{{- end }}
podManagementPolicy: {{ $app.podManagementPolicy }}
template:
metadata:
Expand Down
4 changes: 4 additions & 0 deletions charts/victoria-logs-single/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ server:
enabled: true
# -- Deploy order policy for StatefulSet pods
podManagementPolicy: OrderedReady
# -- StatefulSet update strategy. Check [here](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies) for details.
updateStrategy: {}
# type: RollingUpdate

# -- Pod's termination grace period in seconds
terminationGracePeriodSeconds: 60
serviceMonitor:
Expand Down

0 comments on commit 48eb74b

Please sign in to comment.