Git Product home page Git Product logo

kubeadm-setup's Introduction

kubeadm-setup

Notes for setting up a kubernetes cluster using kubeadm

Installing kubeadm

MAC addresses must be unique for each node:

ifconfig -a

Product UUID must be unique for each node:

sudo cat /sys/class/dmi/id/product_uuid

These two pieces of information are used to provide identity to each node automagically.

The following default port assignments are used by kubernetes:

  • Master: 6443, 2379, 2380, 10250, 10251, 10252, 10255
  • Node: 10250, 10255, 30000-32767

Install docker:

apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"

apt-get update
apt-get install -y docker-ce=$(apt-cache madison docker-ce | grep 17.03 | head -1 | awk '{print $3}')

Install kubeadm, kubelet, kubectl:

apt-get update
apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF

apt-get update
apt-get install -y kubelet kubeadm kubectl

Your docker cgroup driver must match your kubeadm config:

docker info | grep -i cgroup
cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

At the moment, kubelet is not even configured to use cgroup... maybe it defaults to cgroupfs? Current status of kubelet is that it failed to start because /etc/kubernetes/pki/ca.crt does not exist.

We move on...

Initialize the master:

kubeadm init

This fails out of the gate due to preflight checks:

  1. WARNING: crictl not found in system path
  2. ERROR: running with swap on is not supported, disable swap

kubeadm-setup's People

Contributors

davidsiefert avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.