--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
--
livenessProbe:
exec:
command:
- cat
- /tmp/healthyNote that the probe command is executed directly, not in a shell, but you are using a pipe. try this:
command:
- sh
- -ec
- ps -ef | grep my_process_name
aside from that - don't run multiple processes in a container; use multiple containers in a pod instead. Make sure that when your process exits, the main command does; the best way is to ensure that everything is exec'd instead of running as subprocesses. Then, you don't need this probe as the container runtime will know that your process is no longer running and will restart it automatically.
/MR