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
23 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,810 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
• 37,320 points
71 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
• 37,320 points
78 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
• 37,320 points
47 views
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
1,117 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,810 points
170 views
0 votes
3 answers

Using multiple commands in a kubernetes yaml file

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

answered Apr 23 in Kubernetes by lyza
3,517 views