8000 fix(k8s.py): access API server by IP address by mboersma · Pull Request #73 · deis/controller · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Conversation

@mboersma
Copy link
Member

Accessing the k8s api by hostname fails sometimes from within the deis/workflow pod. This changes the requests.Session to use the IP address and port, which is more reliable, but at least for now requires disabling verification of the local SSL cert.

Cert verification is False here since the IP address in the request does match any of the hostnames in the server's cert, and neither that verification nor the HTTP Host header can be overridden in this case in the python requests library. That is, I couldn't see any way short of monkeypatching, after reading the requests source code and overriding several classes involved.

@mboersma mboersma self-assigned this Dec 12, 2015
@bacongobbler
Copy link
Member

And I guess the k8s API can't be accessed by plain old http, eh? I haven't seen a way, so makes sense to me to disable SSL verification if we can't override the Host header.

mboersma added a commit that referenced this pull request Dec 14, 2015
fix(k8s.py): access API server by IP address
@mboersma mboersma merged commit bd447b8 into deis:master Dec 14, 2015
@mboersma mboersma deleted the k8s-api-by-ip branch December 14, 2015 17:49
oliverisaac pushed a commit to myriadmobile/deis-controller that referenced this pull request Mar 27, 2019
fix(charts): set rbac apiVersion without casting
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0