Why am I not able to set the restart policy ?

Solution In Progress - Updated -

Issue

  • I have defined a replication controller that it has defined a pod. I have defined memory limits and my container needs more memory than Openshift gives to the pod and for this reason the pod is killed.

  • The problem is Openshift try to run again and again a pod based on the same configuration and always the pod dies. Is there a limit to the restart policy?

  • Another problem is Openshift says that the deployment finished well but I think if there isn't any pod stable the deployment doesn't finish well.

  • The restart policy is Always, OnFailure, or Never.
    But, I can't change this property, OpenShift doesn't let me. This is the message than OpenShift give me when I try to change the property:

       # ReplicationController test1-1 was not valid:
       # * unsupported value 'Never': supported values: Always

Environment

  • Openshift v3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content