-
Notifications
You must be signed in to change notification settings - Fork 716
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
Kubeadm fails to init a master with a cloud-config because apiserver can't read it #484
Comments
the entire process was started with
but it gets stuck on
logs show errors like this
that led me to find that apiserver container is down
|
I think something like this could fix that: |
@tadas-subonis That would work but is probably overkill and would expose some stuff into the containers that we'd not want to do. We should probably do a directory under The problem is that we don't have explicit support for cloud providers and so we don't know about the Options to make this more generic/safe:
Both of these approaches have their disadvantages as we are plumbing through more tweeks and knobs. More to support and test. But, that being said, I think that option 2 above might be the way to go. |
Is this a regression from 1.7? |
I haven't tried this with 1.7
…On Thu, Oct 5, 2017 at 11:54 PM, Joe Beda ***@***.***> wrote:
Is this a regression from 1.7?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#484 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPFsizDXVESmJx8NiKQQbj-xnGuJ-7gks5spVASgaJpZM4PuC1f>
.
--
Kind Regards,
Tadas Šubonis
|
1.7 seems fine. The code for volumes in manifests was re-done for 1.8, I think, starting July 20th. |
Ah, I see, this is due to that we don't mount the full |
@luxas What about other optional mounts like for basic auth? You mentioned there was a fix, but I didn't find it yet. |
1.8.1 is released. Is this fix included? |
@andrewrynhard is working on a fix for this I think. |
Yah, tried this with kubeadm v1.8.0 - does not work. @tadas-subonis Did you have a workaround for this in the time being? I downgraded to v1.7.8 and that seems like it "may" have worked? |
@srflaxu40 The workaround currently is to put
P.S. Note that |
I moved to other means of deployment (kubespray).
…On Mon, Oct 30, 2017 at 3:44 AM, John ***@***.***> wrote:
Yah, tried this with kubeadm v1.8.0 - does not work. @tadas-subonis
<https://github.com/tadas-subonis> Did you have a workaround for this in
the time being? I downgraded to v1.7.8 and that seems like it "may" have
worked?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#484 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPFsl6j4ROwqFO9GGZMQjMZKsgoViigks5sxTgegaJpZM4PuC1f>
.
--
Kind Regards,
Tadas Šubonis
|
@tadas-subonis Kubespray also supports kubeadm deployment (experimental). kubernetes/kubernetes#49840 will help address this soon |
Automatic merge from submit-queue (batch tested with PRs 49840, 54937, 54543). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. kubeadm: Make it possible to configure volume mounts via the config file **What this PR does / why we need it**: Kubeadm mounts host CA certs into api server and controller manager. It uses `/etc/pki` and does not allow for the path to be configurable. This PR adds a default to `/etc/pki` but also allows a user to configure the path in the config file. In the case of using Container Linux, the CAs are located at `/usr/share/ca-certificates`, so without this PR the hardcoded `/etc/pki` path is used and will break, for example, the `--cloud-provider` flag because of missing CAs. Fixes kubernetes/kubeadm#484 Fixes kubernetes/kubeadm#476 Fixes kubernetes/kubeadm#441 /cc @luxas
@tadas-subonis does kubespray support singly attaching a kube-minion/slave to kube master? |
I believe so. You add it to node group and then apply just that node
…On Nov 1, 2017 18:00, "John" ***@***.***> wrote:
@tadas-subonis <https://github.com/tadas-subonis> does kubespray support
singly attaching a kube-minion/slave to kube master?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#484 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPFspLmhVJoa-9ayqJuWExElvdCM22bks5syJWggaJpZM4PuC1f>
.
|
@jbeda , @luxas, @andrewrynhard can kubernetes/kubernetes#49840 be cherry-picked for 1.8.3 ? I did not see this in https://groups.google.com/forum/#!topic/kubernetes-dev-announce/EBIEGBxXhX4 |
@tamalsaha That PR will be backported to v1.8.x I think, yes |
Running into this same issue trying to get the vSphere plugin working on a cluster built with kubeadm. Temporarily moving my vsphere config file into the pki directory worked for me as far as allowing the cluster to start again after making the --cloud-provider and --cloud-config settings. |
Also running into this issue. |
@rayterrill can you elaborate how you've solved using /etc/kubernetes/pki hack mentioned by @alexpekurovsky ? Here are the generated manifests with the aforementioned hack:
And here is the output, as expected:
|
I copied my vsphere config to /etc/kubernetes/pki, from initially having it at /etc/kubernetes, then I reloaded my configuration with (sudo systemctl daemon-reload; sudo systemctl restart kubelet.service). Everything worked after that. Here's what I have in my manifests:
I'm not exactly sure what you're asking. Let me know if I didn't understand. I'm happy to do whatever I can to help track this down if possible - just still n00b status in Kube and learning so apologies if I missed something. |
So, was anyone able to workaround this issue? |
I am having the same issue, even when I place the Can anyone also specify what should be the content of |
I haven't find any solution, except downgrading to 1.8.7 k8s |
My api server was now able to read my
Getting the following error in kubelet logs:
Anyone please help! |
My cloud config was to get vSphere integration working. In my case it was /etc/kubernetes/pki/vsphere.conf, and my file contained this contents:
|
Who has duplicated --cloud-config in apiserver - check if you have file "/etc/kubernetes/cloud-config" on Host OS. If you do - delete it. It's kind of discovery in kubeadm (or wherever it is) - if you do have this file - you will get automatically "--cloud-config=/etc/kubernetes/cloud-config" |
What's the correct way to do this for Kubeadm 1.8.7. |
@dkirrane As for 1.8 version you have to use /etc/kubernetes/pki hack and pass extra arguments to apiserver and controllermanager. You need to check original location of /etc/kubernetes/cloud-config doesn’t exist. |
@alexpekurovsky just moved from 1.8 to 1.9.5. Is this the correct setup?? Add following to
Update
and add new volumeMount
|
The default description misses the fact that since Kubernetes version 1.9 additional config files in /etc/kubernetes path should be explicitly mounted into kube-apiserver and kube-controller-manager pods. Reference: kubernetes/kubeadm#484
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
the api server fails with the
the cloud config is there on a host but it seems that container can't read it.
SELinux is off:
Versions
kubeadm version (use
kubeadm version
):Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: