On Monday, October 9, 2017 at 5:43:10 PM UTC-7, Tim Hockin wrote:
> If you run 2 containers in a pod, we would just kill an restart the
> one that crashed, leaving the other.
> 
> If you build a "wrapper container" which takes the 3rd party software
> and combines it with your own code, it would behave as you describe,
> though I'll argue the previous option is probably more correct.
> 
> Tim
> 
> On Mon, Oct 9, 2017 at 5:16 PM,  <susha...@gmail.com> wrote:
> > Hi,
> >
> > I'm a newbee to Kubernetes.
> >
> > I currently have a wrapper application built around a ready made licensed 
> > third party service since I want to expose easy to use REST interface and 
> > also append some more stuff to it.
> >
> > My question is - Can I have pods with containers that can mimic the above 
> > setup? So my pods in the end will have two processes - my own application 
> > running on tomcat and the third party service. So if any of my services 
> > die, pod is rendered dead and Kubernetes spins off another pod to match the 
> > declared and desired state.
> >
> > --
> > Thanks,
> > Sushain
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Kubernetes user discussion and Q&A" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to kubernetes-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to kubernetes-users@googlegroups.com.
> > Visit this group at https://groups.google.com/group/kubernetes-users.
> > For more options, visit https://groups.google.com/d/optout.


Hey,

Thanks for the reply. So if there are 2 containers in a pod and if one crashed 
then as you described K8s will restart the just the crashed one. That's great! 

But in that case will the pod be rendered as unstable or unusable, because I 
don't want my first container in that pod to take any request if the second one 
crashes (since there is a dependency) and also up until its back online ?

--
Sushain

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to