Closed nayuta-ai closed 2 years ago
I encountered an error where the Pod started up but exited because there was no process. I have solved adding the parameter of "command" like the below to impose the operation. "command" parameter imposes the process to pods. The example below makes Pod terminate by setting a task to output the last line of the file (/dev/null).
command: ["tail", "-f", "/dev/null"]
I added the above line in "spec.template.spec.containers.command".
spec:
template:
spec:
containers:
- command: ["tail", "-f", "/dev/null"]
I have encountered not working the pod error. I think the error is that the process is terminating and not starting up. If you know about that, I would appreciate your sharing your knowledge.
Dockerfile
yaml file
cmd
Reference
https://www.scsk.jp/sp/sysdig/blog/container_monitoring/crashloopbackoffkubernetes_crashloopbackoff.html