Specifying PVs while defining replication Controller in GCP.

0 votes

I know how to do this for pods(docs) But I am deploying my pods using replication controller to manage the pods.So How do I define a Replication Controller where a pod has a persistent volume attached to it?

Oct 9, 2018 in Kubernetes by Atul
• 5,530 points
46 views

1 answer to this question.

0 votes

You'll have to define a Persistent Volume and a Persistent Volume Claim. Then use the persistent volume claim inside your pod definition in your replication controller. If you want separate PVs for each of your pod You'll have to create separate Replication Controllers for each of your pod.

answered Oct 9, 2018 by DareDev
• 6,850 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

Customize the routing logic in kubernetes ingress controller

Try building your own customized image based on ...READ MORE

answered Sep 7, 2018 in Kubernetes by Kalgi
• 51,830 points
290 views
0 votes
1 answer
0 votes
1 answer

Create Ingress controller in namespace

The ingress resource must be in the ...READ MORE

answered Oct 1, 2018 in Kubernetes by Kalgi
• 51,830 points
238 views
0 votes
1 answer
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 51,830 points
103 views
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
5,529 views
0 votes
1 answer

deleting pods using kubernetes replication controller

The pods which are managed by ReplicationController ...READ MORE

answered Jul 24, 2018 in Kubernetes by DareDev
• 6,850 points
330 views
0 votes
3 answers

Using multiple commands in a kubernetes yaml file

Try something like this: containers: - name: ...READ MORE

answered Apr 23, 2019 in Kubernetes by lyza
10,709 views