-
Notifications
You must be signed in to change notification settings - Fork 54
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
[help] added node with multus not registering with master #206
Comments
@verizonold -- cool that you're trying to get Multus going -- there should be a path forward to get it to work. I haven't tested the workflow with running the playbooks for master only, and then adding a minion -- however, what it looks like is that the CNI configurations didn't get written to the minion, that's how the kubelet will know that the node is ready. So one thing you might want to try is, you know how I have you curl a github gist into a That being said -- you might want to take a look at this more recent blog article on Multus. Granted -- it's talking about using Multus with CRDs (which you don't have to use, if you don't want to use CRDs, just change the example Let me know if you give it another try and run into any issues -- I'll leave the issue open here for a bit to give you a chance to try it out. |
@dougbtv thanks much! really appreciate this. also, I did not use your ansible scripts to create the Kubernetes cluster since I had some failures. Should I prep my CentOS boxes (disable selinux, swap, iptables, docker install,...) before I run your ansible scripts to install Kubernetes? |
If you do decide to use the playbooks -- they should perform all the steps to prep the CentOS boxes. We just merged a big change to the playbooks this morning, and as I think I mentioned before, a thorough how-to article should be coming up soon. So if you look in this folder, there are a few yaml files -- namely "flannel.yaml" and "multus.yaml" -- you'd choose only one. The multus.yaml file there includes both Multus and flannel, and then it also includes macvlan. Kind of as a demo to have flannel & macvlan interfaces in pods, having had Multus create those both. I also replied to your issue on the Multus repo with some more detail, but, the gist is that those yaml files there are really just stock Flannel deployments that you can kick off with p.s. No prob! Appreciate some input, because I'd love if it were more straight forward to get this all deployed by someone who drops by this repo! :) |
@dougbtv so, I am using Virtual Box and created one VM with Ansible running on it together with kube_install. Is this my virtual host that you refer in your blog? Should I see VM's for Master and Minions in VirtualBox after I run the ansible scripts? |
@dougbtv also, I am planning on creating the master/minion VM's in virtual box and proceeding as per Plan B here:http://dougbtv.com/nfvpe/2017/02/16/kubernetes-1.5-centos/ |
Yep, that plan B should from the kube install article should work just fine. That is -- if you don't use this repo's virtual machine spin up methods, you just skip to using So generally, what you'd do is...
I think that should generally work. After I get the article up that's an update to the kube 1.5 install you're looking at -- I'll also give an example extra variables to use to do the whole |
@dougbtv very helpful. So, if i used kube_install.yml, it installs multus as well? I thought i still had to: |
Actually the kube-install can install Multus as well! I went ahead and published the new article, I was waiting for the merge today, and... I also added a section for Multus using some extra vars, too! Give it a look @verizonold -- http://dougbtv.com/nfvpe/2018/03/21/kubernetes-on-centos/ |
@dougbtv so gave it a spin. And I get the following error:
|
@dougbtv contents from journalctl:
|
Can you show me what the kubelet service looks like? It looks like it's complaining that there's something wrong with the systemd unit, which I haven't seen before, here's what an example one looks like from a recent run on one of my systems...
Also what's the CentOS release look like, mine looks like...
|
@dougbtv
|
|
|
Hrmmm, interesting -- the kubelet service looks just fine, and our systems are pretty close -- you do have a newer kernel -- which looks like it might come from the EPEL repos, maybe? A few things more to try...
|
@dougbtv so I think the problem was with 10-kubeadm.conf. I had re run your ansible scripts a couple times and each time I run, it appends the ExecStart statement to this file. So, i did an ansible run with my master/minion with playbooks/kube-install.yml. It generally went well. However, I had to do a kubeadm reset/init/join manually. And I did "kubectl apply -f multus.yaml". I see the following which is probably not in operational state. Can you please let me know if my procedure above is right?
|
@dougbtv Also, I see the following in journal n Master:
|
@dougbtv Also, this journal on minion:
|
Cool -- at least you got the kubelet running. You're getting closer! There's also a part of me that wants to see if you can replicate it on subsequent runs with fresh machines -- in part because I'd like to fix it so it'll work every time you kick it off. @verizonold -- can you show me the output of Something else that also concerns me is that the there's only one instance of A quick thing to try too is to |
@dougbtv I got what seems like a working deployment. However, I log into the POD and cannot ping either the minion or the master. Nor can I ping the multus interface from master or minion node. Can you point out any items that I can possibly debug to set this right?
|
@dougbtv this is related to tracking the problems with the build (enclosed last):
companyy-extra.yml
companyy.inventory
Build error
|
verizonold reported that they had a successful run with some fresh virtual machines. maybe something user-introduced that caused the failure. looks like a problem with the centos user's ability to run |
@dougbtv great help with this. I have a working deployment for now. Closing this issue |
Hi,
So, I followed your directions at http://dougbtv.com/nfvpe/2017/02/22/multus-cni/ and ran into some issues.
I ran your scripts with master only and then added a minion. However, I do not see the worker registering with the master. I see the following in journalctl. Can you please provide some feedback?
The text was updated successfully, but these errors were encountered: