Merge "Allow 50% unavailable nodes if upgrading DaemonSet kind"
This commit is contained in:
commit
821952595d
|
@ -122,7 +122,8 @@ def parse_role(component, topology, configmaps, jinja_imports):
|
|||
"implemented using Kubernetes DaemonSet")
|
||||
replicas = len(set(topology[service_name]))
|
||||
if strategy['type'] == 'RollingUpdate':
|
||||
strategy['rollingUpdate'] = {'maxSurge': 0, 'maxUnavailable': 1}
|
||||
strategy['rollingUpdate'] = {'maxSurge': 0,
|
||||
'maxUnavailable': '50%'}
|
||||
else:
|
||||
replicas = replicas or 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue