k8s - Why we need ReplicaSet when we have Deployments

前端 未结 2 802
旧时难觅i
旧时难觅i 2021-01-20 18:25

I am new to kubernetes and microservices, there are 2 objects, Deployments and ReplicaSet.

I can\'t wrap my head around even after reading its documentations and oth

2条回答
  •  情话喂你
    2021-01-20 18:53

    Deployment works one level above ReplicaSet object. Deployment is recommended for application services.

    With deployment you should be able to do rolling upgrade or rollback. You can update image from v1 to v2.

    With ReplicaSet you define number of replicas you want to run. For a particular service. You would have those many replicas running.

提交回复
热议问题