Skip to content

Commit 6569d89

Browse files
authored
Merge pull request #2157 from subnet-dev/allow-templating-of-updatestrategy-for-worker-daemonset
add configurable worker daemonset updateStrategy in Helm chart
2 parents 019dc95 + fa1b313 commit 6569d89

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

deployment/helm/node-feature-discovery/templates/worker.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ metadata:
1313
{{- end }}
1414
spec:
1515
revisionHistoryLimit: {{ .Values.worker.revisionHistoryLimit }}
16+
{{- with .Values.worker.updateStrategy }}
17+
updateStrategy:
18+
{{- toYaml . | nindent 4 }}
19+
{{- end}}
1620
selector:
1721
matchLabels:
1822
{{- include "node-feature-discovery.selectorLabels" . | nindent 6 }}

deployment/helm/node-feature-discovery/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,12 @@ worker:
470470

471471
priorityClassName: ""
472472

473+
updateStrategy: {}
474+
# type: RollingUpdate
475+
# rollingUpdate:
476+
# maxSurge: 0
477+
# maxUnavailable: "10%"
478+
473479
topologyUpdater:
474480
config: ### <NFD-TOPOLOGY-UPDATER-CONF-START-DO-NOT-REMOVE>
475481
## key = node name, value = list of resources to be excluded.

docs/deployment/helm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ API's you need to install the prometheus operator in your cluster.
266266
| `worker.readinessProbe.timeoutSeconds` | integer | 1 (by Kubernetes) | Specifies the number of seconds after which the probe times out. |
267267
| `worker.readinessProbe.successThreshold` | integer | 1 (by Kubernetes) | Specifies the number of consecutive successes of readiness probes before considering the pod as ready. |
268268
| `worker.dnsPolicy` | array | ClusterFirstWithHostNet | NFD worker pod [dnsPolicy](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) |
269+
| `worker.updateStrategy` | dict | {} | Daemonset [updateStrategy](https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/#performing-a-rolling-update) |
269270

270271
### Topology updater parameters
271272

0 commit comments

Comments
 (0)