serving
serving copied to clipboard
How do I set the restartPolicy of the pod
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
It is not possible for now. Here is the old thread https://github.com/knative/serving/issues/13041
Going to close this out given Deployments (what back Revisions) can only set the restartPolicy to Always