I do not think that kubernets should do such -log-driver options in the json pod file. In my experience, you can set such a setting in the docker service. check
/etc/systemd/system/docker.service
and set ExecStart = / usr / bin / docker daemon --log-driver = json-file blablabla. more information can be obtained here: https://docs.docker.com/engine/admin/logging/overview/#configure-logging-drivers
Further, if you did not install this -log driver, a json file will be created by default, which contains all the logs of your containers in kubernetes containers, you can find these files on
your_docker_runtime_root/docker/containers/container_id/container_id-json.json
source share