Saving logs

In some troubleshooting cases, it may be of interest to have a look at the logs generated for a failing container. In order to save logs to a file, kubectl logs can be used to retrieve the logs of a particular pod. An example command is:

kubectl -n <syntho-namespace> logs <pod-or-deployment-name> >> <log-name>.log
# Example
kubectl -n syntho logs deployment/core >> core.log
kubectl -n syntho logs deployment/backend >> backend.log

Last updated