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

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I am extremely delighted in for this web journal. Its a useful subject. It help me all that much to take care of a few issues. Its chance are so awesome and working style so rapid. Abrir um e-commerce
Left by chalsea on Feb 28, 2018 10:19 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
This is such an awesome asset, to the point that you are giving and you give it away for nothing. I adore seeing blog that comprehend the benefit of giving a quality asset to free. afiliados brasil
Left by dsdsd on Mar 02, 2018 5:01 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Hi, i think that i saw you visited my weblog so i came to “return the favor”.I’m attempting to find things to improve my site!I suppose its ok to use some of your ideas!! Discover More
Left by Robinjack on Mar 18, 2018 7:04 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Much obliged for sharing us about this redesign. Trust you won"t get tired on making posts as enlightening as this. Photo booth rental ottawa
Left by Robinjack on Mar 19, 2018 7:10 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Pleasant post mate, keep up the colossal work, simply imparted this to my friendz Freight Broker
Left by Robinjack on Mar 20, 2018 7:27 AM

# seo
Requesting Gravatar...
This is such an awesome asset, to the point that you are giving and you give it away for nothing. I adore seeing blog that comprehend the benefit of giving a quality asset to free.Garden Planters
Left by Robinjack on Mar 24, 2018 7:36 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Oh my goodness! an incredible article dude. Thank you Nevertheless I am experiencing difficulty with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting equivalent rss downside? Anybody who knows kindly respond. Thnkx best slim fit suits
Left by Robinjack on Mar 26, 2018 10:20 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Αποφράξεις τιμές. Οι καλύτερες τιμές σε αποφράξεις αποχετεύσεων, άντληση υδάτων, εκκενώσεις βόθρων, σε όλη την Αττική. Μόνο από 20€. ΤΗΛ 211 8 500 400... αποφραξεις τιμες
Left by Robinjack on Mar 27, 2018 7:22 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Eco Αποφράξεις – Αποφράξεις τιμές. Αποφράξεις τιμές – H εταιρεία Eco – Αποφράξεις, δραστηριοποιείτε με ασύγκριτο επαγγελματισμό και για μια ολόκληρη πενταετία στον χώρο των αποφράξεων. Με τις καλύτερες αποφράξεις τιμές και υπευθυνότητα, παρέχουμε αποφρακτικές υπηρεσίες στην Αθήνα και ολόκληρη την περιοχή .. αποφραξεις αποχετευσεων
Left by Robinjack on Mar 27, 2018 11:21 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Search engines Adsense not just provides key phrase precise classified ads nevertheless web site precise adverts at the same time, maximizing your own probable to get sales revenue. Rondreizen
Left by Robinjack on Apr 12, 2018 8:47 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Η Απολυμαντική Αττικής είναι μια επιχείρηση με αλματώδη ανάπτυξη, Η ιδιαιτερότητα και η δύναμη της βασίζεται στην υψηλή ποιότητα υπηρεσίας και στην υπεύθυνη εξυπηρέτηση των πελατών της σε συνδυασμό με τα προσιτά κοστολόγια. Η εταιρεία καλύπτει με οργανωμένο και φιλικό τρόπο κάθε ανάγκη μας για απολύμανση και απομάκρυνση ανεπιθύμητων εντόμων. Στηρίζεται στην προσωπική γνωριμία που αναπτύσσει με κάθε έναν της πελάτη ξεχωριστά όπως βεβαίως και στις σύγχρονες τεχνολογίες που χρησιμοποιεί. Η απεντόμωση και η μυοκτονία εντάσσονται στον τομέα της Υγιεινής κατά την οποία το συνεργείο της Απολυμαντικής Αττικής εφαρμόζει αποκλειστικά εγκεκριμένα παρασκευάσματα από το Υπουργείο Γεωργίας. Τα φάρμακα αυτά ανήκουν στην κατηγορία των συνθετικών πυρεθρινών με microcap και είναι άοσμα, άχρωμα, με ευρύ φάσμα δράσης για άμεσα αποτελέσματα κατάλληλα για χρήση σε ιδιωτικούς και δημόσιους χώρους. Η εφαρμογή γίνεται σε επιλεγμένα σημεία στο εσωτερικό της οικίας, στο WC και στην κουζίνα εκεί δηλαδή όπου κατοικούν οι ανεπιθύμητοι επισκέπτες και είναι σύμφωνο με τον υγειονομικό κώδικα Δημόσιας Υγείας απολυμανσεις
Left by Robinjack on Apr 12, 2018 10:19 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Before you proceed with entering your login information into the Credit One Login make sure that you're browsing authentic Credit One Bank website. Many phishing attacks start with mail and URLs which lead to malicious websites.
Left by Robinjack on Apr 14, 2018 7:18 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
A debt of gratitude is in order for your post. I've been contemplating composing an extremely tantamount post in the course of the last couple of weeks, I'll most likely keep it straightforward and connection to this rather if thats cool. Much obliged. Event Managemwent
Left by Robinjack on Apr 17, 2018 8:42 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Amazing and fascinating article. Incredible things you've generally imparted to us. Much obliged. Simply keep making this kind out of post. POP
Left by Robinjack on Apr 22, 2018 10:16 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I precisely desired to say thanks once again. I’m not certain the things that I might have used in the absence of the entire opinions revealed by you regarding that question. It had become a real difficult concern in my position, nevertheless spending time with your specialised avenue you resolved the issue made me to jump over joy. I’m just grateful for this advice and even wish you comprehend what a great job that you’re carrying out instructing most people all through your webpage. I know that you have never got to know any of us. http://nadiecie.wroclaw.pl
Left by Robinjack on Apr 24, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I merely picked up your blog post a couple weeks ago i have actually been perusing this tool always. An individual has a lot of helpful tips at this point we absolutely love your lifestyle of a internet sites actually. Stick to the nice perform! http://nasilowni.wroclaw.pl
Left by Robinjack on Apr 24, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Carbon Dioxide Cylinders – Best Tricks All Consumers Must Know http://treningbrzucha.wroclaw.pl
Left by Robinjack on Apr 24, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
This is tough. I’m not pointing fingers at you though, personally I think that its those that aren’t motivated to change. http://do-przedruku.waw.pl
Left by Robinjack on Apr 24, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Photograph utilizing a cellulite meal plan to make sure if I am qualified to at last eradicate the best dimpled skin eternally. Experts have problematic but i morning sticking with it all. I am experience even better within excellent personally, so can be described as get going with. http://www.6weidera.wroclaw.pl
Left by Robinjack on Apr 24, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Along with having one of the best on screen fights of the year with Johnson,Vin Diesel gives a fantastic,real return-to-form performance as Dominic. https://zyciegwiazd24.pl
Left by Robinjack on Apr 24, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
I truly appreciated perusing this post, huge fan. Keep doing awesome me when would you be able to distribute more articles or where would I be able to peruse more on the subject? News Singapore Social Generation
Left by Robinjack on Apr 25, 2018 12:37 PM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
pleasant bLog! its fascinating. much thanks to you for sharing.... german rottweilers
Left by Robinjack on Apr 26, 2018 8:07 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
A debt of gratitude is in order for your post. I've been contemplating composing an extremely tantamount post in the course of the last couple of weeks, I'll most likely keep it straightforward and connection to this rather if thats cool. Much obliged. best hiking boots for wide feet men
Left by Robinjack on Apr 26, 2018 11:43 AM

# re: Installing a Kubernetes Cluster on CentOS 7
Requesting Gravatar...
Amazing online journal. I delighted in perusing your articles. This is really an incredible read for me. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome! Backpage Massages San Jose
Left by Robinjack on Apr 30, 2018 8:16 AM

Your comment:
 (will show your gravatar)


Copyright © Alex Hildyard | Powered by: GeeksWithBlogs.net