1 +Installing+Kubernetes+Using+Kubeadm
1 +Installing+Kubernetes+Using+Kubeadm
****************
*
*
* Subject: Installing Kubernetes using "Kubeadm" on "Ubuntu"
*
*
*
* Author: Srinath Challa | Kubernetes SME | Udemy
*
*
*
* Created On: Feb 2021
*
*
*
* Connect me on:
*
* --------------
*
* https://www.udemy.com/user/srinathchalla/
*
* https://www.linkedin.com/in/srinathchalla/
*
* https://www.youtube.com/srinathchalla
*
*
*
* Reference:
*
* ----------
*
* https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-
kubeadm/ *
* https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-
cluster-kubeadm/ *
* https://kubernetes.io/docs/setup/production-environment/container-runtimes/
#docker *
*
*
***********************************************************************************
****************
***********************************************************************************
****************
Worker Node:
PS1="\e[0;36m[\u@\h \W]\$ \e[m "
***********************************************************************************
****************
1. PRE-Reqs: Disable Swap | Bridge Traffic (Run it on MASTER & WORKER Nodes):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
***********************************************************************************
****************
mkdir -p /etc/systemd/system/docker.service.d
***********************************************************************************
****************
***********************************************************************************
****************
kubeadm init
***********************************************************************************
****************
5a) "kubectl":
~~~~~~~~~~~~~~
# for kubectl
mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config
NOTE: There are multiple CNI Plug-ins available. You can install choice of yours.
Incase above commands doesn't work, try checking below link for more info.
***********************************************************************************
****************
# Run this command IF you do not have above join command and/or to create NEW one.
kubeadm token create --print-join-command
***********************************************************************************
****************