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
• 18,570 points
507 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
• 52,360 points

Related Questions In Kubernetes

0 votes
1 answer

What is a Kubelet?

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

answered Jul 11, 2019 in Kubernetes by Sirajul
• 59,230 points
1,592 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, 2019 in Kubernetes by Sirajul
• 59,230 points
471 views
0 votes
1 answer

What is a Resource Quota in Kubernetes?

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

answered Jul 16, 2019 in Kubernetes by Sirajul
• 59,230 points
1,063 views
0 votes
1 answer

What is a service role in kubernetes components?

A service is an abstraction for pods. ...READ MORE

answered Jul 16, 2019 in Kubernetes by Sirajul
• 59,230 points
514 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17, 2019 in Others by anonymous
14,583 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,060 views
+2 votes
2 answers

Difference between a replica set and replication controller

Olaaa Jinu! Replica set and replication controller - ...READ MORE

answered Dec 19, 2019 in Kubernetes by Kalgi
• 52,360 points
25,182 views
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
• 7,050 points
10,190 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP