inServiceStrategy vs toServiceStrategy?

###What is the difference ?

What is the difference between inServiceStrategy and toServiceStrategy when using the REST API to upgrade a service ?

I’d like to upgrade a service through the API and adding a label to it. Which strategy should I use and how to add a label during this upgrade.

Thank you for your help.

Fred

inServiceStratey is the equivalent of an in-service upgrade.

toServiceStrategy is the equivalent of a rolling upgrade

Most users will want to use the inServiceStrategy. The rolling upgrade was originally the only upgrade option until we introduced the inservice one.

So, I can use InServiceStrategy to upgrade my service and adding a label to it?

Thank you

Yep, you can change your service definition, so adding a label would work.