Bộ bản sao là thế hệ tiếp theo của Bộ điều khiển nhân bản. Bộ điều khiển nhân bản là điều bắt buộc, nhưng các bộ bản sao cố gắng khai báo càng tốt.
1. Sự khác biệt chính giữa bộ bản sao và bộ điều khiển nhân bản ngay bây giờ là bộ chọn hỗ trợ.
+--------------------------------------------------+-----------------------------------------------------+
| Replica Set | Replication Controller |
+--------------------------------------------------+-----------------------------------------------------+
| Replica Set supports the new set-based selector. | Replication Controller only supports equality-based |
| This gives more flexibility. for eg: | selector. for eg: |
| environment in (production, qa) | environment = production |
| This selects all resources with key equal to | This selects all resources with key equal to |
| environment and value equal to production or qa | environment and value equal to production |
+--------------------------------------------------+-----------------------------------------------------+
2. Điều thứ hai là cập nhật nhóm.
+-------------------------------------------------------+-----------------------------------------------+
| Replica Set | Replication Controller |
+-------------------------------------------------------+-----------------------------------------------+
| rollout command is used for updating the replica set. | rolling-update command is used for updating |
| Even though replica set can be used independently, | the replication controller. This replaces the |
| it is best used along with deployments which | specified replication controller with a new |
| makes them declarative. | replication controller by updating one pod |
| | at a time to use the new PodTemplate. |
+-------------------------------------------------------+-----------------------------------------------+
Đây là hai điểm phân biệt RS và RC. Việc triển khai với RS được sử dụng rộng rãi vì nó khai báo nhiều hơn.
Nguồn
2016-12-16 18:59:49
Tôi đang có cùng một câu hỏi vào lúc này. Tôi đoán Deployments và ReplicaSets sẽ thay thế ReplicationControllers. Điều xấu là gần như tất cả các tài liệu hiện hành là về ReplicationControllers. –