-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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