Update
# access to the container
kubectl exec -it -c integration my-route-80b4cb7566-v6l7m /bin/sh
# go to directory
cd /tmp
Both the answers of Squake and Nicola are working properly. To check the generate logging file, you need to access to the container and check the right directory:
Original Question
I have an integration pod running with kamel:
kamel run MyRoute.java
I have log in the route
from("...")
.log("my log message")
I am able to check the log lines with command:
kubectl logs my-route-85d7f65c96-rmb4z --tail=10
Then I am able to access to the pod using:
kubectl exec -it -c integration my-route-85d7f65c96-rmb4z /bin/sh
I tried to check folder /var/log, unfortunately there's no related log files.
I have 2 questions on this:
- Where is the log file location in the integration pod?
- How can I specify log file location?
Thanks