-
Notifications
You must be signed in to change notification settings - Fork 710
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
Starting Kubernetes on an Arch Linux VM using Kubeadm #465
Comments
@imriss I'm not exactly sure what the issue is here. Is it that you expect kubeadm to restart kubelet? |
@jamiehannaford Yes, or alternately send a notification and ask the user to manually restart kubelet. |
@imriss Why do you need to restart kubelet on a fresh VM that kubeadm has just been installed to? Or is this for VMs that had previous clusters on? Doesn't |
How are other components are installed ? kubeadm expects to have specific systemd service file to be used for kubelet, and if you're trying to mix components packaged in ArchLinux that have different settings, it might not work as expected. |
@jamiehannaford @kad Thanks for the insights. |
@kad For installation, I am using |
@imriss Yeah, so as @kad already mentioned, I think there's some inconsistency with the installation expectations across distros. When kubeadm is first installed with apt, for example, it creates a systemd drop-in that set's kubelet's /cc @luxas |
@jamiehannaford Thanks. I set the |
Hello, Did it work? im having same issue |
@vkumar2808 No, it still needs 1. The changes to
2. The changes to Step 2: 3. The changes to Step 3: 4. The NEW Step 4: |
Thanks @imriss . Could you please send me sample of your kublet conf file? |
@vkumar2808 This is the content of
|
For the recommended |
Thanks @imriss . I just deployed k8s v 1.8.1 on single server and it is seamlessly working fine. I had several sleepless night and weekend to work on it. I can seriously say that kubernetes document is lacking some important stuff. It may be because they have widen deployment for several platform. https://docs.projectcalico.org/v2.6/getting-started/kubernetes/ My QA needs dashboard to access logs and it is great now..everything has started fine. My next adventure will be install k8s on multi nodes and make sure after server reboot it survive. i have written several command and notes but nothing can beat calico instruction. |
Are there action items for kubeadm here? There are no official packages for Arch Linux for kubeadm AFAIK. cc @colemickens |
There's no official package, but I do maintain I keep some scripts around to help with destroying/recreating my singlen node cluster here (https://github.com/colemickens/chimera-k8s-config), but you'll see the cluster boot is largely just:
(One other small note, Arch packages don't start/enable services by default, hence why I don't have the kubelet or kubeadm packages |
Thanks all. As @colemickens mentioned there are many packages that provide |
Hey Guys,
Use flannel. With calico you may run into issue for several setup for
multiple nodes. Flannel works for me for multi node without much work for
setup.
…On Sat, Oct 21, 2017 at 6:33 PM, Reza Farrahi M ***@***.***> wrote:
Thanks all. As @colemickens <https://github.com/colemickens> mentioned
there are many packages that provide kubernetes on Arch Linux. I have all
the binaries installed. The purpose of this issue filing was to have a
documented list of steps to bring up k8s, such as cgroup/systemd setting,
among others. From all the comments I am learning more. Thanks again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#465 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATbohDW7-czK6JlJADGHy1bjqXi-1TDnks5sunEngaJpZM4PiyrQ>
.
--
Thanks
Vijay
|
@imriss What other steps did you need to do? At one point I thought I'd had to tweak the cgroup driver, but I'm not setting anything in the @vkumar2808 can you provide any more details? Why did Calico not work in a multi-node setup? What didn't work? |
@colemickens sorry for the delay. One other thing is the need to offline-download the images (mentioned here and here) before |
The command to pull the images (to have it offline before calling |
I don't understand why those are necessary. |
@imriss I cannot see a specific issue here that we need to fix. The information you have provided appears to document an installation process on Arch Linux. If you are calling for improvements of user experience on Arch Linux, please let us know and we will see what can be done. If simply would like to document the process, please write a blog post or consider opening a PR to add it to the docs (if it's something you are happy to maintain). |
Closing, stale and last comment. |
Is this a BUG REPORT or FEATURE REQUEST?
It could be both BUG REPORT and FEATURE REQUEST.
Versions
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5+17d7182a7ccbb", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"not a git tree", BuildDate:"2017-09-12T15:19:56Z", GoVersion:"go1.9", Compiler:"gc", Platform:"linux/amd64"}
Environment:
kubectl version
):uname -a
):Linux Arch1 4.12.13-1-ARCH #1 SMP PREEMPT Fri Sep 15 06:36:43 UTC 2017 x86_64 GNU/Linux
What happened?
[apiclient] Created API client, waiting for the control plane to become ready
[apiclient] All control plane components are healthy after 16.56457 seconds
How to reproduce it (as minimally and precisely as possible)?
The [excerpts from the] working configuration:
Note: The VM has two interfaces.
10.0.3.15
is the IP on theNAT
interface, while10.13.13.103
is the IP of theInternal
interface.~/.bashrc
:/etc/hosts
:/etc/kubernetes/config
:/etc/kubernetes/kubelet
:/usr/lib/systemd/system/docker.service
:ExecStart=/usr/bin/dockerd -H fd:// --exec-opt native.cgroupdriver=systemd
Steps:
Step 0:
systemctl stop kubelet.service
Remove k8s containers, if any.
mount | grep "/var/lib/kubelet/*" | awk '{print $3}' | sudo xargs umount 1>/dev/null 2>/dev/null
Step 1: Change the files and reboot, if needed.
Step 2:
Step 3:
In a terminal, switch to root, then:
Then, wait until you see the message "
All control plane components are healthy after 16.56457 seconds
".Step 4: In another terminal:
Then:
systemctl restart kubelet.service
Step 5:
You will see the progress in the first terminal (where you issued
kubeadm init
) to the end where you receive the token:kubeadm join --token ecb54a.3456765423dd34c2 10.0.3.15:6443
What is expected?
It is expected that
kubeadm init
performs asystemctl restart kubelet.service
at some point because it knows that the credentials have been changed.Anything else we need to know?
Hanging for a long time (indefinite) at:
[apiclient] Created API client, waiting for the control plane to become ready
was mentioned:kubeadm 1.7.2 init blocks on waiting for control plane to be ready #360
Create a master node takes a long time. kubernetes-retired/kubeadm-dind-cluster#34
kubeadm 1.7.2 init blocks on waiting for control plane to be ready #360 (comment)
kubeadm init waiting for the control plane to become ready on CentOS 7.2 with kubeadm 1.6.1 #228
kubeadm init hang up at 'Created API client, waiting for the control plane to become ready', but I'm not using systemd or selinux #353
kubeadm init hangs CentOS 7 kubeadm 1.6 #308
kubeadm blocks waiting for 'control plane' kubernetes#33544
Hanging for a long time (indefinite) at:
[apiclient] All control plane components are healthy after 16.56457 seconds
was mentioned:kubelet can not up of V1.5.0 kubernetes#39602
Running Kubernetes Locally via Docker -
kubectl get nodes
returnsThe connection to the server localhost:8080 was refused - did you specify the right host or port?
kubernetes#237261.6.1 The connection to the server localhost:8080 was refused kubernetes#44665
Avoiding
--api-servers
was mentioned:kubelet: Incorrect fallback to hairpin-mode "hairpin-veth" kubernetes#23322
Kubelet won't read apiserver from kubeconfig kubernetes#36745
The text was updated successfully, but these errors were encountered: