Restart pod/container after stopping server inside

Hi all,
I have a case that I have a pod/container and server nuxeo inside container.
When I stop server inside container… kubertnates restarts the pod/container.
I tried to modyfi the restatPolicy to “Never” value but It’s not possible:

kubectl apply -f myvaluesnuxeo.yml

Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
The Deployment “my-nuxeo” is invalid: spec.template.spec.restartPolicy: Unsupported value: “Never”: supported values: “Always”

I’ve also tried to change the liveness and readness parameters in yaml file but it dose not work.

Any ideas?

thnx