Rolling updater availability enhancements

Enhance the rolling updater to support maintaining minimum pod
availability for the duration of the update process.
This commit is contained in:
Dan Mace
2015-07-28 14:43:48 -04:00
parent cb2252b57f
commit da5e4d7bd5
6 changed files with 1289 additions and 928 deletions

View File

@@ -680,12 +680,6 @@ __EOF__
kubectl delete pod valid-pod "${kube_flags[@]}"
kubectl delete service frontend{,-2,-3,-4,-5} "${kube_flags[@]}"
### Perform a rolling update with --image
# Command
kubectl rolling-update frontend --image=kubernetes/pause --update-period=10ns --poll-interval=10ms "${kube_flags[@]}"
# Post-condition: current image IS kubernetes/pause
kube::test::get_object_assert 'rc frontend' '{{range \$c:=$rc_container_image_field}} {{\$c.image}} {{end}}' ' +kubernetes/pause +'
### Delete replication controller with id
# Pre-condition: frontend replication controller is running
kube::test::get_object_assert rc "{{range.items}}{{$id_field}}:{{end}}" 'frontend:'