e.g. when the sidecar is in your way…
kubectl get pods
kubectl get pod POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'; echo
gives e.g.
exporter haproxy
so let’s get into the haproxy container
kubectl exec -ti POD_NAME_HERE -c haproxy -- /bin/bash