I found that the ReplicationController will allow only a restartPolicy that is equal to "Always". Is this a valid one?
Else I need to use Job for OnFailure or Never option.
But I need to deploy a web server which I cannot deploy as a Job and it should be as RC.
In this scenario when deployed as RC, the container is restarting frequently which makes the web server useless.
What is the solution for this?
--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/2bb149fa-49c2-4802-83aa-95314cf00acc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
But, I have been using the same container image previously with v1.1, I didn't face this problem. Now I am using the same image with v1.2, and the container is restarting frequently. I will try to debug the problem with the webserver.On the other side, I need to deploy the webserver as an RC for various reasons, one of the reason is to ensure that the minimum number of replicas are available and do not want them to terminate. When one pod is terminated, the RC will bring up a new pod. I don't think so that a Job can do this. Also I don't want to use Job which will execute for specified count and will be terminated.
--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/d0e9066d-9c0a-4968-9cff-125e442f1487%40googlegroups.com.
If you want to restart your program when it exits with any exit code, or if a node fails, then use an RC.If you want your program to be restarted when a node fails, or when it exits with a failure code, but to stop running when it exits with Success, then use Job.On Wed, Mar 30, 2016 at 10:50 AM, Sujai S <sujai....@gmail.com> wrote:But, I have been using the same container image previously with v1.1, I didn't face this problem. Now I am using the same image with v1.2, and the container is restarting frequently. I will try to debug the problem with the webserver.
----On the other side, I need to deploy the webserver as an RC for various reasons, one of the reason is to ensure that the minimum number of replicas are available and do not want them to terminate. When one pod is terminated, the RC will bring up a new pod. I don't think so that a Job can do this. Also I don't want to use Job which will execute for specified count and will be terminated.
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/d0e9066d-9c0a-4968-9cff-125e442f1487%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAASt_VFUUcc3waKXdBPq0W_L%3Dt2EWX1%3DeQ0F590rA0MwPHDvXw%40mail.gmail.com.
Fwiw your original json has a typo in "image":"ngnix", and a pod with the stock nginx image should not restart without some reason that shows up in `kubectl describe pod`.
--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/beaf2129-4e44-4bc7-88cc-4087680cd6e4%40googlegroups.com.
time="2016-04-13T12:08:28.420608779Z" level=warning msg="Your kernel does not support CPU cfs period. Period discarded."time="2016-04-13T12:08:28.420674445Z" level=warning msg="Your kernel does not support CPU cfs quota. Quota discarded."time="2016-04-13T12:15:11.724535398Z" level=error msg="Force shutdown daemon"