nilesh2121 / kubernetinstallation-steps

0 stars 0 forks source link

Kubernete installation steps #1

Open nilesh2121 opened 2 years ago

nilesh2121 commented 2 years ago

Installation Master

nano /etc/fstab ---- swap disable

ufw disable --- Firewall disable

apt update

Select the Container engine - containerd

sudo mkdir -p /etc/containerd

containerd config default | sudo tee /etc/containerd/config.toml

sudo apt-get install -y containerd

Step 1

cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf overlay br_netfilter EOF

Step 2

sudo modprobe overlay sudo modprobe br_netfilter

Step 3

Setup required sysctl params, these persist across reboots.

cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf net.bridge.bridge-nf-call-iptables = 1 net.ipv4.ip_forward = 1 net.bridge.bridge-nf-call-ip6tables = 1 EOF

Step 4 # Apply sysctl params without reboot

sudo sysctl --system

=============================================================== sudo apt-get update

Step 5 Certificate installation with key

sudo apt-get install -y apt-transport-https ca-certificates curl

sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg

echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list

=================================================================== Install Kubernet = Control-plane

apt install kubeadm kubelet kubectl

Step 1

@@@(Note-Kubeam init –pod-network-cidr= IP range (192.168.0.0/16)@@@

Kubeam init –pod-network-cidr=192.168.0.0/16

===============================================

export KUBECONFIG=/etc/kubernetes/admin.conf

================================================

2 Steps

mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config

==================================================== step 3 for network management Install calico - You should now deploy a pod network to the cluster.

kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml

kubectl create -f https://docs.projectcalico.org/manifests/custom-resources.yaml

========================================================

export KUBECONFIG=/etc/kubernetes/admin.conf

nilesh2121 commented 2 years ago

new file commit