-
Notifications
You must be signed in to change notification settings - Fork 34
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
kubelet-rubber-stamp initialization chicken and egg problem #8
Comments
I worked around the chicken and the egg problem by starting kubelet-rubber-stamp outside a container. I copied the binary out, and ran the commands below. I had to create a special kubeconfig with a user that has cluster-admin privileges. After starting kubelet-rubber-stamp, it did successfully approve the certificate requests. Commands:
|
The actual kubelet error is below:
I was able to workaround this by removing "--network-plugin=cni" from the kubelet. Which allowed kubelet-rubber-stamp to start. I think the next problem it had was it needed admin privileges, because it is crashing. |
Looks like kube-router is having trouble, but still kubelet insists that the cni should be up before starting a container. Error: |
I switched back to a dedicated kubelet certificate for the kubelets on the masters. This allows kube-router and kube-rubber-stamp to run normally. While still allowing the use of TLS bootstrapping for kubelets on workers/nodes. |
Hmm, the problem is that kubelet does not post the I haven't been using kube-router at all, but one alternative might be to run kubelet-rubber-stamp with |
@edgan you could also try to manually approve the certificate when bootstrapping first node. |
I did successfully get kubelet-rubber-stamp working with a kube cluster I started with regular certificates, and then transitioned to auto generated kubelet server certificates. I am now trying to bring up a cluster from scratch, and finding that there is a chicken and the egg problem. My CNI, kube-router, expects the kubelet to have a valid server certificate, but gets the error below. Then kubelet-rubber-stamp expects the CNI to be running before it will start.
Edit:
The error below is actually about the retrieval of the logs from that kubelet, but it still stands that the cluster won't come up without kubelet-rubber-stamp working.
Error:
Error from server: Get https://kube-cluster-worker-01.inf.us-west-1.aws.acme.com:10250/containerLogs/kube-system/kube-router-44wjt/kube-router: remote error: tls: internal error
The text was updated successfully, but these errors were encountered: