Should I Use Deployments or Pods for Single Instance Services in Kubernetes?
Asked by
roof.slate
I'm currently exploring Kubernetes and have set up a cluster in my homelab. Most of my single-instance services like NextCloud and Plex are deployed as Deployments with replicas set to 1, but I'm questioning whether I should be deploying them as standalone Pods instead. Is there a significant advantage to using Deployments over Pods for these types of services, or is either option acceptable?
Answers
Always opt for Deployments! Using a Deployment allows you to scale down to zero for maintenance without losing your configurationโif you delete a Pod, itโs gone and you'll have to recreate everything. Plus, with Deployments, you get features like rolling updates. Pods donโt support that.
Reply to this answer
Add your answer
Answers are reviewed before publication.
_market inspector: Good to know, thanks!