DEV Community

Discussion on: I am DevOps Engineer Working With K8s A Lot, Ask Me Anything!

Collapse
 
taragrg6 profile image
taragurung

Can you help me clear this doubts of mine?
Suppose I have a container multiple containers with mysql too. when I am in single node than I can easily create multiple mysql container using same container volume. But when we want same thing to work with multiple cluster. Now what is the best way to maintain the database container volume across all the node.

What do we do in such scenario? Thanks!

Collapse
 
joehobot profile image
Joe Hobot

Which cloud provider do you use? Because if you use like stateless the volume should be accessible by all nodes so container it self does not matter where it is unless you go by labels.

Say in my example for elk stack , the ebs volume is created and attached to container as volume, if container for es goes down and goes onto another host the volume is still be available as it’s a shared ebs volume.