For me the cleanest way is to explicitly use kubectl and set up kubeconfig, all those hacks are temporary solutions that soon or later might fail. Also you might benefit for authentication over multiple clusters if needed.
↧