Today I learnt : Kubectl commands for debugging

Today I learnt a few kubectl commands which I used to for debugging a few issues in testing environment at work. To check logs kubectl logs -f pod_name Useful when you need to check logs inside a pod. To get the bin bash inside a pod kubectl --exec --stdin --tty podname --bin/bash This is useful command to check for certain versions or debugging which is done This command was helpful for determining Java versions inside the pod which was used in a particular environment....

March 3, 2023 · 2 min · 217 words · Shweta Kadam