node-exporter: set maxUnavailable to 10%

This daemonset doesn't affect workload availability so allow its rollout to
be parallelized.
This commit is contained in:
Scott Dodson 2020-09-01 15:08:45 -04:00
parent 88fe47b35e
commit ddc853e1ac
2 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
daemonset.mixin.metadata.withNamespace($._config.namespace) +
daemonset.mixin.metadata.withLabels(podLabels) +
daemonset.mixin.spec.selector.withMatchLabels(selectorLabels) +
daemonset.mixin.spec.updateStrategy.rollingUpdate.withMaxUnavailable('10%') +
daemonset.mixin.spec.template.metadata.withLabels(podLabels) +
daemonset.mixin.spec.template.spec.withTolerations([existsToleration]) +
daemonset.mixin.spec.template.spec.withNodeSelector({ 'kubernetes.io/os': 'linux' }) +

View File

@ -88,3 +88,6 @@ spec:
- hostPath:
path: /
name: root
updateStrategy:
rollingUpdate:
maxUnavailable: 10%