habitat-sh / habitat-operator

A Kubernetes operator for Habitat services
Apache License 2.0
61 stars 17 forks source link

Allow deploying stateless services as Deployments instead of StatefulSets #366

Open HT154 opened 5 years ago

HT154 commented 5 years ago

I know the operator used to use Deployments and they were phased out with v1beta2, but the reality is that StatefulSets don't make sense for most stateless services. The primary benefit of Deployments is the ability to perform rolling updates, which is completely orthogonal to how StatefulSets are implemented.

The operator should provide a way to select whether to use a StatefulSet or Deployment.

jtimberman commented 5 years ago

This would be a welcome feature. Most of the applications we're running internally in Kubernetes are stateless, or connect to database services that are external like AWS's RDS or Elasticache.