Skip to content

Commit 7e22631

Browse files
author
lerndevops
authored
Update install-k8s-local-ubuntu.txt
1 parent 65fa559 commit 7e22631

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

kubernetes/install-k8s-local-ubuntu.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
pre-requisites to be done on local ubuntu machine for k8s setup.
22

3+
for Ubuntu 18 LTS
4+
====================
35
disable swap ( on master & nodes )
46

57
swapoff -a
68
vi /etc/fstab
79
comment the swap line putting hash infront of the line
810
ex: #UUID=9fb8bc78-f247-4b69-8b4a-44171adeda7b none swap sw 0 0
911

12+
for Ubuntu 16 LTS
13+
====================
14+
15+
disable swap ( on master & nodes )
16+
17+
swapoff -a
18+
vi /etc/fstab
19+
comment the swap line putting hash infront of the line
20+
ex: #UUID=9fb8bc78-f247-4b69-8b4a-44171adeda7b none swap sw 0 0
21+
1022
disblae default reslov conf services & install dnsmasq ( only on master )
1123

1224
sudo systemctl disable systemd-resolved.service
@@ -22,6 +34,7 @@ set the nameserver ( only on master )
2234
vi /etc/resolv.conf
2335
nameserver 8.8.8.8
2436
=========================================================================================
37+
2538
K8s Master Setup Local Ubuntu
2639

2740
Install docker
@@ -50,8 +63,7 @@ K8s Master Setup Local Ubuntu
5063
make note of kubeadm join command to be run on Nodes
5164

5265
for coredns pods to come up run below
53-
54-
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
66+
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml
5567

5668
========================================================================================
5769

0 commit comments

Comments
 (0)