
Rafal Kuszneruk
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] — [COMMAND] instead.
The proper way is to do following to get the shell:
kubectl exec –stdin –tty pingtest-84646bf5d4-bgslm — /bin/bash