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,060 points
106 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
• 51,890 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
• 54,240 points
488 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
• 54,240 points
80 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
• 54,240 points
387 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
• 54,240 points
51 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, 2019 in Others by anonymous
7,192 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 11, 2019 in Kubernetes by Kalgi
• 51,890 points

reshown Apr 12, 2019 by Kalgi 2,121 views
+1 vote
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
• 51,890 points
9,495 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
• 6,970 points
2,144 views