-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory #8242
Comments
I've just created a fresh new environment and issues a single self-signed CA certificate (without dividing it to Root and Intermediate). I installed this certificate the same way and now I've got the following result of Kubespray:
So, something seems to be wrong with my Intermediate CA certificate, but what exactly it is? |
Perhaps I was wrong when I had chosen the Bug label during the issue's submission, it might be my fault. I'd be very grateful for any hints. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
hey any updates here ? i have the same issue: failed to find: bootstrap-kubelet.conf and NOT FOUNDED in any nodes my INI file `[all] [kube_control_plane] [etcd] [kube_node] [calico_rr] [k8s_cluster:children] and here that i got on "journalctl" |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi there. I found a very stupid workaround. Instead of using a full certification chain (Intermediate CA certificate + Root CA certificate), I used the Intermediate CA certificate only. Kubespray works fine, almost everything works fine as well, but it led me to another problem: https://discuss.kubernetes.io/t/using-an-intermediate-ca-whose-certificate-is-signed-by-a-self-signed-root-ca-certificate/19866 :-/ |
To be frank, I've come to the conclusion that the most reliable way is to issue a self-signed certificate (with |
I'm trying to deploy a K8S cluster with my own CA.
The environment consists of 9 virtual machines in my own virtualization cluster (
master1
,master2
,etcd1
,etcd2
,etcd3
,worker1
,worker2
,worker3
,worker4
).This is not the first K8S cluster I deploy with Kubespray, but I never tried to use my own CA before. I'm following the hints that I found at #5687.
I've created the Root CA certificate (self-signed) and the Intermediate CA certificate (signed by Root CA). The chain of 2 certificates is here: https://gist.github.com/melnik13/328238e82c096a02d9f65a825ef270a8. The Intermediate CA's key is not encrypted, here it is: https://gist.github.com/melnik13/233f5019fd56bec67787a78bb5dcd477 (I don't consider it as something secret, this is a testing environment).
I install the CA certificate chain to
master1
andmaster2
(as/etc/kubernetes/ssl/ca.crt
and/etc/kubernetes/ssl/front-proxy-ca.crt
) and toetcd1
,etcd2
,etcd3
(as/etc/ssl/etcd/ssl/ca.pem
). I install the key of the Intermediate CA tomaster1
andmaster2
(as/etc/kubernetes/ssl/ca.key
and/etc/kubernetes/ssl/front-proxy-ca.key
) and toetcd1
,etcd2
,etcd3
(as/etc/ssl/etcd/ssl/ca-key.pem
). Hopefully, that's correct, though I'm not sure... :-)The operating system is CentOS 7 x64 with all the updates installed, here are more details:
Ansible version is 2.10.11, here are more details:
Python version is 3.6.8.
Kubespray version is 2.17, the commit ID (SHA-1 hash) is
a2af9a7
.Network plugin is Calico.
Here's the full inventory's dump: https://gist.github.com/melnik13/5564b04055211bca4ea0a39847113532 .
I invoke Ansible with the following command:
Here's the result of Ansible run: https://gist.githubusercontent.com/melnik13/de5eb0b30554030fad8885411b42b9df/raw/3dc52ce1929fe79330854847e0717f72f6f80bd0/ansible-cluster.log, the shortened version is here: https://gist.github.com/melnik13/687c61f737f12d625911d685287e887e .
Here's what I see on
master2
in themessages
log-file: https://gist.github.com/19c4a116e34bceacbc81966d94357ce2 .Is that a bug? Or that's something I'm doing wrong?
The text was updated successfully, but these errors were encountered: