Open mikechengwei opened 4 years ago
cc @cvvz
/assign
@mikechengwei @DanielZhangQD As @mikechengwei mentioned, we should use readinessGates
to make sure Pod won't be Ready
before inplace-update finished. I think we need to add readinessGates
in TidbCluster
spec, when InPlaceIfPossible
or InPlaceOnly
is set in TidbCluster
, the InPlaceUpdateReady
must be set in readinessGates
at the same time. There is no need to delete InPlaceUpdateReady
from readinessGates
when InPlaceIfPossible
or InPlaceOnly
is changed to Recreate
. But changing the definition of readinessGates
will cause rollingupdate immediately. WDYT?
After changing the strategy, I think the pod should be restarted to update the spec and remove readinessGates
field. Because readinessGates
just work in InPlace strategy. And turn into Inplace strategy, the pod should also be updated on a rolling basis.
Feature Request
Describe the feature you'd like: When the user only changes the image field, operator only needs to recreate the container instead of recreating the pod.
Describe alternatives you've considered: When we update image field , kubelet will find the hash change of the container image , it will kill current conatiner, and start container with the new image.
So kubernetes only support image field in-place update now ,and I find 'Pod resource requests & limits to be updated in-place' is developing. We can support image in-place updated firstly.
I considered the following:
Thats all.
reference: