Deploy Kubernetes with kubeadm

David Dymko
May 27, 2019 · 5 min read
Image for post
Image for post
Photo by ammiel jr on Unsplash

Overview

Hosting?

Configuring the worker and master

Installing Docker

Disable SELinux

Disable Swap

Disable Firewall

Update IPTables

Install kubelet/kubeadm/kubectl

Creating the cluster

Master Node setup

kubeadm init --apiserver-advertise-address=YOUR_IP_HERE --pod-network-cidr=10.244.0.0/16
kubeadm join YOUR_IP:6443 --token 4if8c2.pbqh82zxcg8rswui \--discovery-token-ca-cert-hash sha256:a0b2bb2b31bf7b06bb5058540f02724240fc9447b0e457e049e59d2ce19fcba2
mkdir $HOME/.kube
cp /etc/kubernetes/admin.conf $HOME/.kube/config
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
NAME                 STATUS    MESSAGE             ERROR
scheduler Healthy ok
controller-manager Healthy ok
etcd-0 Healthy {"health":"true"}

Worker Node

kubeadm token create --print-join-command
NAME          STATUS   ROLES    AGE    VERSION
k8-master Ready master 107m v1.14.2
k8-worker Ready <none> 45m v1.14.2

Wrapping up

Image for post
Image for post
Image for post
Image for post

If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts

Sign up for FAUN

By FAUN

Medium’s largest and most followed independent DevOps publication. Join thousands of aspiring developers and DevOps enthusiasts Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

David Dymko

Written by

Gopher with a keen interest in cloud native

FAUN

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

David Dymko

Written by

Gopher with a keen interest in cloud native

FAUN

FAUN

The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium