Add replicaset support for deployment