When I try to use the instructions from the documentation to connect to a GKE cluster using the config file it fails with the dreaded: "requests.exceptions.SSLError: hostname." I expect this to work by not validating the hostname and instead validating the cert.
The workaround is to use kubectl proxy and http://localhost:8001 which is just an extra step for the user. It would be nice if requests could turn host validation off in this case, but there is no such feature in that library. I filed a feature request with it as well, but it is basically rejected.
It may be worth updating the docs to deal with this.
When I try to use the instructions from the documentation to connect to a GKE cluster using the config file it fails with the dreaded: "requests.exceptions.SSLError: hostname." I expect this to work by not validating the hostname and instead validating the cert.
The workaround is to use kubectl proxy and http://localhost:8001 which is just an extra step for the user. It would be nice if requests could turn host validation off in this case, but there is no such feature in that library. I filed a feature request with it as well, but it is basically rejected.
It may be worth updating the docs to deal with this.