error getting ClusterInformation - Forbidden

Solution 1:

the problem was that there was a custom proxy defined in the system. once the proxy disabled, the kubernetes restapi queries started to work.
I set the NO_PROXY env veriable for kubernetes subnet. more info about disabling the proxy can be found here: https://superuser.com/a/1402962/191955