How to install Kubernetes on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org


#1

The second node with hostname kubernetes-master also running Ubuntu 18.04 will be a slave node simply joining the Kuberneets cluster. Once we get the Kubernetes cluster up and running as a proof of concept we will deploy a Nginx server container.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-kubernetes-on-ubuntu-18-04-bionic-beaver-linux

#2

Evan Richardson

This has a crap ton of errors in it… for example, both nodes are referred to as “kubernetes-master”, even when you show “kubernetes-slave” . might want to fix that


#3

Braun Brelin
Hi.

This doesn’t work for me. I’m running on Bionic Beaver and followed your steps exactly, however, the pods don’t ever enter the running state. I get the following error from syslog:

May 10 13:59:12 xvarix kubelet[24245]: W0510 13:59:12.542082 24245 cni.go:171] Unable to update cni config: No networks found in /etc/cni/net.d
May 10 13:59:12 xvarix kubelet[24245]: E0510 13:59:12.542190 24245 kubelet.go:2125] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

#4

Rodrigo

This tutorial worked very well, but when i rebooted the machine kubernetes didn’t work any more.


#5

sajeer -> Rodrigo

first you should check all the container are running
you should add sudo docker run --restart=always -d your_image


#6

Evan Richardson -> sajeer

kubernetes doesn’t work…not the docker containers. Just ran into the same issue. the fix for me was to remove the swap partition in /etc/fstab by putting a # in front of it, reboot and kubernetes starts right up.