Geeks With Blogs
Alex Hildyard

Having played around with the GKE and MiniKube "one stop" clusters, I wanted to build a multi-node K8 cluster from a bunch of CentOS VMs. The experience was pleasantly straightforward, following the instructions at https://kubernetes.io/docs/setup/independent/install-kubeadm/ with one or two caveats.

First of all, after the initial K8 installation, you will need to disable swap and remove the certificate keys on all nodes before you can either initialise the cluster on the master node or join a slave node to the cluster:

swapoff -a
service kubelet stop
rm -rf /var/lib/kubelet/pki

Also pay attention to the final output from "kubeadm init"; you will not be able to install a pod network until you have manually copied and permissioned the admin.conf file as described; instead, at least with K8 1.8, you'll get confusing W102 warnings about K8 falling back on localhost:8080:

scp root@<master_node>:/etc/kubernetes/admin.conf ~/.kube/config

And you'll need to do the same thing on the slave nodes if you want to be able to run cluster commands from them in addition. 

Finally. if you want to schedule pods on your master node, check it's taint-free (returns no taint) with:

kubectl describe node <master_node> | grep -i taint

So far as pod networks go, I installed Calico without any issues. You can then continue with the Sock Shop sample installation, and check all the expected services are running with:

kubectl get services --all-namespaces

Posted on Thursday, October 12, 2017 9:05 AM | Back to top


Comments on this post: Installing a Kubernetes Cluster on CentOS 7

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Left by Petr on Oct 12, 2017 2:25 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Great stuff!!
Marketmuni
Left by Nishith on Oct 24, 2017 6:18 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Nice share! Thanks.
Left by Roger on Oct 29, 2017 8:42 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Finaly i found solution. TY!!!
Best atv winch
Left by Ken on Oct 30, 2017 3:56 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Lovely
Good Health
Left by Nicole on Nov 15, 2017 3:38 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Left by Nicole on Nov 23, 2017 8:20 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Lovely Work
Good Health
Left by Nicole on Nov 25, 2017 5:10 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
What resource would you recommend for building up the network of CentOS VM's using Virtualbox? How would you recommend actually configuring those to interconnect?
Left by Sarah on Dec 05, 2017 9:27 PM

# Avengers Infinity War
Requesting Gravatar...
This article clarify many ambiguities in my mind and now I can explain this topic more clearly

Captain America Jacket
Left by Cara Santiago on Jan 16, 2018 11:34 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Much obliged for setting aside an ideal opportunity to talk about that, I feel unequivocally about this thus truly like becoming acquainted with additional on this sort of field. Do you psyche overhauling your blog entry with extra understanding? It ought to be truly helpful for every one of us. Vancouver investment immigration
Left by japan on Feb 12, 2018 7:07 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
You make such a variety of extraordinary focuses here that I read your article two or three times. Your perspectives are as per my own particular generally. This is extraordinary substance for your perusers. Mobilee Video Interview With Jonas Lindgren
Left by amelia on Feb 13, 2018 3:39 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Great post however I was thinking about whether you could compose a litte more on this subject? I'd be extremely grateful on the off chance that you could expand a tiny bit further. Value it! Billboards
Left by japan on Feb 13, 2018 3:52 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I am happy you take pride in what you compose. This makes you stand way out from numerous different essayists that push inadequately composed substance. fire pit gas burner
Left by japan on Feb 13, 2018 5:13 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Somebody Sometimes with visits your online journal frequently and prescribed it I would say to peruse too. The method for composing is brilliant furthermore the substance is first class. A debt of gratitude is in order for that understanding you give the perusers! police taskforce software
Left by amelia on Feb 13, 2018 7:35 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
A debt of gratitude is in order for setting aside an ideal opportunity to examine this, I feel emphatically about it and affection adapting more on this theme. On the off chance that conceivable, as you pick up skill, would you psyche overhauling your online journal with more data? It is to a great degree supportive for me. Metro journey planner
Left by amelia on Feb 15, 2018 1:53 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I can set up my new thought from this post. It gives top to bottom data. A debt of gratitude is in order for this significant data for all,.. tassen
Left by sonia on Feb 19, 2018 5:46 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Respecting the time and exertion you put into your site and nitty gritty data you offer!.. portable office
Left by sonia on Feb 20, 2018 7:11 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I love the way you write and share your niche! Very interesting and different! Keep it coming! Leap
Left by sonia on Feb 22, 2018 10:13 AM

Your comment:
 (will show your gravatar)


Copyright © Alex Hildyard | Powered by: GeeksWithBlogs.net