Is it safe to replace ReplicationController with Deployment

3/2/2019

I am practicing katacoda k8s lesson with the knowledge from Stack Overflow. I had tried kill the pods by command line and the result of them are exactly the same with simple example. The pod will get recreated in several moment later after dead.

Question:
Can I just simply replace the ReplicationController with Deployment?

-- Sarit
katacoda
kubernetes

1 Answer

3/2/2019

Don't use replication controller. Those are replaced with ReplicaSet.

In your case, use deployment object to manage the application life cycle. With deployment you would be able to control rolling upgrade and, rollbabk features of kubernetes

Deployment object works one layer above ReplicaSet and allows you to upgrade the app to new version with zero downtime

-- P Ekambaram
Source: StackOverflow