Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement idea #1

Open
tdwyer opened this issue Jul 23, 2020 · 1 comment
Open

Improvement idea #1

tdwyer opened this issue Jul 23, 2020 · 1 comment

Comments

@tdwyer
Copy link

tdwyer commented Jul 23, 2020

If you kill the kubelet process and then start it again right away you can put whatever commandline arguments you want. The way your doing it was the first approach I took, but in the end it seems easier uploading a rouge kubelet binary.

I think you can have your proxy listening on local host and forwarding traffic to the Kubernetes API Server using the Kubelet's cert/key and listen for the kubelet outbound traffic intended for the Kubernetes API with plain text HTTP. Then, kill the kubelet process and restart it with commandline flags telling the kubelet that the Kubernetes API server is listening on localhost without TLS.

I think you may need to have the proxy listen on like 127.0.0.2 and add an entry to /etc/hosts like 127.0.0.2 api-server.com

@tabbysable
Copy link
Owner

tabbysable commented Jul 24, 2020

I was initially thinking of something like that, too. As far as I can tell, it can't be done that way because the kubelet re-registers its listening address and port when restarted, and there's no way to get kubelet to turn off TLS for its listening port.

Do you have workarounds in mind for those issues? It'd be cool to simplify the data path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants