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 init failed with swap on error #122
Comments
@praveenkanna -- thank YOU for giving it a try, having some luck, and most
of all -- for submitting an issue! Something we changed recently was to
make a couple of the roles included from ansible galaxy.
There's a new note on the readme @ https://github.com/redhat-nfvpe/kube-centos-ansible#usage
But, a shortcut to that is to run:
```
ansible-galaxy install -r requirements.yml
```
And see if that clears up your issues.
I didn't read your issue in depth yet, but, thought this was a good start.
I'll take a further look here when I get a minute to read through and give
the issue the attention it deserves.
|
Shoot -- I might've responded to the wrong issue, but, still appreciate you submitting this issue @praveenkanna -- @leifmadsen is going to respond with an actually helpful response! (ahhh, I was replying to the original title. Glad Leif can help regardless) |
@praveenkanna are you creating your own virtual machines rather than using the If you're using the I'm going to give it a shot in a few minutes, and see if I can reproduce the issue. If so, I'll come back here and let you know. If not, then I'll show you what I ran to get it to operate correctly. |
@praveenkanna we just tagged a 0.1.7 release as well, which actually fixes up a bug with the I just tried 0.1.6, and the way I'd run it, 0.1.6 is actually broken :) (I had noticed it and fixed a bug already to resolve that). When doing the deployment, this is how I would do it:
Then in my virthost.local
groups_vars/virthost.yml
If you do it that way, then the |
@leifmadsen @dougbtv Thanks for your responses guys. i'm not setting up the vms using virthost-setup.yml. I have two already provisioned vms with centos 7 installed and using them in vms.local.generated and running the playbooks(ansible-playbook -i inventory/vms.local.generated kube-install.yml) and Yes they do have swap partition. I even did swapoff and tried running the playbook but still seeing the same issue. I also tried adding Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false" in kubadm.conf file but no luck. Anyways I will try the latest tag and will post if i get any errors. |
@leifmadsen @dougbtv Seems like it is working now with the new tag but i'm getting this error, Can you guys please check and help me out to figure it out what it is !!
I thought i'm behind the proxy and passed the proxy then i'm seeing this error :
|
@praveenkanna, unfortunately, I've not tested |
I'm reminded by Leif's response (thanks Leif) that something you might want to try is setting the
Since it's a warning -- it might just be a validation by kubeadm which can be skipped (but, I haven't used it with a proxy setup, either) |
Additionally I was able to dig up a little information about the proxy settings for kubeadm, apparently they come from environment variables. The author of the proxy functionality for kubeadm posted information in this issue detailing what environment variables are used, and how to use them. @praveenkanna -- if you figure out how to set the proxy environment variables, we'd certainly love any contributions around that. Especially a pull request would be great, but even if you document what you use, we can add it to our backlog to add that functionality. |
@dougbtv is there any documentation around the preflight checks variables? I wonder if we need to open a documentation issue to start showing what stuff you can pass into kucean and the scenarios you might want to do that? Of course you can send someone to start looking through the We can discuss on IRC and then propose an issue if we decide there is something to do. |
+1, we should have some kind of "options overview" for commonly used options. It's more like, just a few examples of when to use variables and no centralization of that. |
I'm going to close this issue out, as I believe it's either been addressed in a later release, or was a local issue. |
Firstly, Thank you very much guys for your awesome work. Recently started working on kubernetes and came through your repository and kucean is really helpful in creating my own Kubernetes cluster.
I picked latest tag v0.1.6 and started the process in installing the cluster. Then i have seen this below error:
Can any one help me out in getting rid of this and help me getting my Kubernetes cluster up.
Thanks,
Praveen.
The text was updated successfully, but these errors were encountered: