On Wed, Jun 29, 2016 at 07:55:44AM -0700, Ori Popowski wrote:
> Yep, I've just tried it :)
> 
> As a followup question:
> 
> If I run some DB as a Kubernetes pod (ignore for a second that it might not 
> be recommended) - is it a good case to using hostPath volume so the data 
> will persist even if the pod is killed?

Not really, because the pod can be scheduled on any node. And if you sue
"hostPath", you are using the pod of a single node and when the pod is moved to
another node (on deploy it might happen), the data won't be there.

The easiest way, if you are using a cloud provider like AWS or google cloud, is
to create a persistent disk there and select that in the pod definition (as
"hostPAth" is one option, a persistent disk from a cloud provider is an option
too :))

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to