What is a Replication Controller

0 votes
What is replication controller and what exactly is it being used for?
Oct 26, 2018 in Kubernetes by Hannah
• 16,210 points
52 views

1 answer to this question.

0 votes

If there are too many pods, the ReplicationController terminates the extra pods. If there are too few, the ReplicationController starts more pods. Unlike manually created pods, the pods maintained by a ReplicationController are automatically replaced if they fail, are deleted, or are terminated. A ReplicationController is similar to a process supervisor, but instead of supervising individual processes on a single node, the ReplicationController supervises multiple pods across multiple nodes. RC looks something like this:

apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx
spec:
  replicas: 3
  selector:
    app: nginx
  template:
    metadata:
      name: nginx
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80
answered Oct 26, 2018 by Kalgi
• 41,990 points

Related Questions In Kubernetes

0 votes
1 answer

Difference between a replica set and replication controller

Replica Set and Replication Controller do almost ...READ MORE

answered Apr 17 in Kubernetes by Sahit
2,454 views
0 votes
1 answer

What is a Kubelet?

Each node runs services to run containers ...READ MORE

answered Jul 11 in Kubernetes by Sirajul
• 36,220 points
41 views
0 votes
1 answer

How to determine what is the status of a deployment ?

You could use kubectl get deployment <deployment>.  If ...READ MORE

answered Jul 12 in Kubernetes by Sirajul
• 36,220 points
41 views
0 votes
1 answer

What is a Resource Quota in Kubernetes?

A resource quota, defined by a ResourceQuota ...READ MORE

answered Jul 16 in Kubernetes by Sirajul
• 36,220 points
63 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
2,942 views
+3 votes
1 answer
0 votes
2 answers

Is there a way to start a cron job manually

You can create a simple job based ...READ MORE

answered Sep 18, 2018 in Kubernetes by Nilesh
• 6,880 points
564 views
0 votes
1 answer

Is it possible to access GCP resources using api without a user interaction.?

yes that's totally possible. You'd have to create ...READ MORE

answered Sep 19, 2018 in Kubernetes by Kalgi
• 41,990 points
44 views