Search code examples
dockergokuberneteslogginggoogle-kubernetes-engine

how to stop I/O log container in kubernetes


when i access docker container in GKE like kubectl exec -it [pod-name] bash -n seunghwan i see lots of logs(I don't know what it is) enter image description here this container I accessed have nodejs application but i tried mysql server it looks same. I am the only one can see these logs. others can't see these logs so I think this problem is from my local if need more info please tell me thank you

when i access container in GKE there are no logs in bash terminal.


Solution

  • I had the same problem. In my case a DEBUG environment variable was set, changing it to false didn't help, but removing it worked.

    Solution:

    1. Check if DEBUG is set:

    export | grep DEBUG

    1. Unset it

    unset DEBUG

    1. Now run your kubectl command