How to use this command inside pod manifest? /bin/sh-c tail -n+1 -F /var/log/c . . .

Muhammad Jamee Ghouri:
how to use this command inside pod manifest?

/bin/sh-c tail -n+1 -F /var/log/cka-exam.log

Alistair Mackay:

command:
- /bin/sh
- -c
- "tail -n+1 -F /var/log/cka-exam.log"

But since tail is a binary and not a shell built-in you can shorten it and not load the extra copy of sh saving on memory usage

command:
- tail
- n+1
- /var/log/cka-exam.log

unnivkn:
Hi @Muhammad Jamee Ghouri you may refer some good examples here:
https://kubernetes.io/docs/concepts/cluster-administration/logging/