Connection to the server localhost:8080 was refused – did you specify the right host or port?
This tutorial shows you how to solve kubernetes error “The connection to the server localhost:8080 was refused – did you specify the right host or port?” while running kubectl or helm commands.