mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-27 06:01:04 +01:00 
			
		
		
		
	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:
		
							parent
							
								
									88fe47b35e
								
							
						
					
					
						commit
						ddc853e1ac
					
				| @ -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: | |||||||
|       - hostPath: |       - hostPath: | ||||||
|           path: / |           path: / | ||||||
|         name: root |         name: root | ||||||
|  |   updateStrategy: | ||||||
|  |     rollingUpdate: | ||||||
|  |       maxUnavailable: 10% | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user