title: Is there a cloud-native friendly method to select a master among the replicas?
body: <p>Is there a way in Kubernetes to upgrade a given type of pod first when we have a deployment or stateful set with two or more replicas ( where one pod is master and others are not)?</p>
  <p>My requirement to be specific is to ensure <strong>when calling upgrade on deployment/statefull set is to upgrade master as the last pod under a given number of replicas.</strong>.</p>