From the question you can tell I'm a newb.
At the moment to get the logs of my pod I'm doing a ...
oc logs -f api-myapp-v1-48-cdrs2
This shows me everything in the log. How can I tail them instead?
Also I was wodering if someone could point me out to a nice cheat sheet of open shift commands? One that is good for beginners.
thanks
Use the --tail
option.
oc logs api-myapp-v1-48-cdrs2 --tail=50
You can use the --help
option to commands to find out what options they accept.
For some hands on exercises to help you learn OpenShift, see:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With