below is docker run command:
docker run --log-driver=syslog
How to set log-driver in kubsernetes pods. Can you show examples to me? Thanks...
To get Kubectl pod logs, you can access them by adding the -p flag. Kubectl will then get all of the logs stored for the pod. This includes lines that were emitted by containers that were terminated.
Edit a PODRun the kubectl edit pod <pod name> command. This will open the pod specification in an editor (vi editor). Then edit the required properties.
By default, the kubelet writes logs to files within the directory C:\var\logs (notice that this is not C:\var\log ). Although C:\var\log is the Kubernetes default location for these logs, several cluster deployment tools set up Windows nodes to log to C:\var\log\kubelet instead.
There is an open feature request for this, but it's not yet supported: https://github.com/kubernetes/kubernetes/issues/15478
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