serving icon indicating copy to clipboard operation
serving copied to clipboard

How do I set the restartPolicy of the pod

Open SleepyKFish opened this issue 3 years ago • 2 comments

Ask your question here:

When I want to set restartPolicy directly in yaml, the following problem occurs: Error from server (BadRequest): error when creating "cpu-test .yaml": Service in version "v1" cannot be handled as a Service: strict decoding error: unknown field "spec.template.spec.restartPolicy"

knative version:1.8 kubernetes version:1.26

SleepyKFish avatar Jul 23 '23 15:07 SleepyKFish

It is not possible for now. Here is the old thread https://github.com/knative/serving/issues/13041

nak3 avatar Jul 24 '23 01:07 nak3

Going to close this out given Deployments (what back Revisions) can only set the restartPolicy to Always

dprotaso avatar Aug 02 '23 14:08 dprotaso