Skip to content
Snippets Groups Projects
Commit ddc853e1 authored by Scott Dodson's avatar Scott Dodson
Browse files

node-exporter: set maxUnavailable to 10%

This daemonset doesn't affect workload availability so allow its rollout to
be parallelized.
parent 88fe47b3
Branches
Tags
No related merge requests found
...@@ -137,6 +137,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; ...@@ -137,6 +137,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
daemonset.mixin.metadata.withNamespace($._config.namespace) + daemonset.mixin.metadata.withNamespace($._config.namespace) +
daemonset.mixin.metadata.withLabels(podLabels) + daemonset.mixin.metadata.withLabels(podLabels) +
daemonset.mixin.spec.selector.withMatchLabels(selectorLabels) + daemonset.mixin.spec.selector.withMatchLabels(selectorLabels) +
daemonset.mixin.spec.updateStrategy.rollingUpdate.withMaxUnavailable('10%') +
daemonset.mixin.spec.template.metadata.withLabels(podLabels) + daemonset.mixin.spec.template.metadata.withLabels(podLabels) +
daemonset.mixin.spec.template.spec.withTolerations([existsToleration]) + daemonset.mixin.spec.template.spec.withTolerations([existsToleration]) +
daemonset.mixin.spec.template.spec.withNodeSelector({ 'kubernetes.io/os': 'linux' }) + daemonset.mixin.spec.template.spec.withNodeSelector({ 'kubernetes.io/os': 'linux' }) +
......
...@@ -88,3 +88,6 @@ spec: ...@@ -88,3 +88,6 @@ spec:
- hostPath: - hostPath:
path: / path: /
name: root name: root
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment