What is the difference between a replica set and a replication controller?

Pragya Keshap answered on February 11, 2023 Popularity 7/10 Helpfulness 3/10

Contents


More Related Answers

  • how to create replica of table in sql
  • Replica Sets
  • replica sets
  • What is replicas and ISR in Kafka?
  • Which of the following statement is true regarding replication in both RDS Read Replicas and Multi-AZ?
  • Differentiate between partitions and replicas in a Kafka cluster.
  • Which of the following is the correct command to increase the number of replicas for a deployment inside kubernetes cluster ?
  • 4.Replicas
  • 4.Replicas
  • Geographically distributed replicas#
  • When compared with the replication Controllers, ReplicaSets have an extended support for?
  • Comparing Pods, ReplicaSets, and services#

  • What is the difference between a replica set and a replication controller?

    0

    Replica Set and Replication Controller do almost the same thing. Both ensure that a specified number of pod replicas are running at any given time. The difference comes with the usage of selectors to replicate pods. Replica Set uses Set-Based selectors while replication controllers use Equity-Based selectors.

    Equity-Based Selectors: This type of selector allows filtering by label key and values. So, in layman’s terms, the equity-based selector will only look for the pods with the exact same phrase as the label.

    Example: Suppose your label key says app=nginx; then, with this selector, you can only look for those pods with label app equal to nginx.

    Selector-Based Selectors: This type of selector allows filtering keys according to a set of values. So, in other words, the selector-based selector will look for pods whose label has been mentioned in the set.

    Example: Say your label key says app in (Nginx, NPS, Apache). Then, with this selector, if your app is equal to any of Nginx, NPS, or Apache, the selector will take it as a true result.

    https://medium.com/avmconsulting-blog/replication-controller-replica-sets-in-kubernetes-820f3cec7170#:~:text=The%20replica%20set%20and%20the,set%20supports%20set%2Dbased%20selectors.

    Popularity 7/10 Helpfulness 3/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 11 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.