Difference between revisions of "How to install Kubernetes"

From ppwiki
Jump to navigation Jump to search
Line 6: Line 6:
 
==Node informations==  
 
==Node informations==  
 
node1 = k8s2001.tx.labnet = master node / IP address 10.64.0.14
 
node1 = k8s2001.tx.labnet = master node / IP address 10.64.0.14
 +
 
node2 = k8s2002.tx.labnet / IP address 10.64.0.15
 
node2 = k8s2002.tx.labnet / IP address 10.64.0.15
 +
 
node3 = k8s2003.tx.labnet / IP address 10.64.0.16
 
node3 = k8s2003.tx.labnet / IP address 10.64.0.16
  

Revision as of 03:16, 5 November 2018

In this tutorial, we will be installing Kubernetes (k8s) cluster. The cluster will have 1 master and 2 nodes.

Prerequisites

To complete this tutorial, we will need 3 nodes running Debian Stretch. This tutorial will work too on nodes running Ubuntu Xenial.

Node informations

node1 = k8s2001.tx.labnet = master node / IP address 10.64.0.14

node2 = k8s2002.tx.labnet / IP address 10.64.0.15

node3 = k8s2003.tx.labnet / IP address 10.64.0.16

make sure that all nodes can talk to each other. Like in all my turorials, I have a DHCP server and a DNS server running in my environment so no need for me to manually edit my /etc/hosts file. But, if you do not have a DHCP and DNS server in your environment, please edit your /etc/hosts file.

  • master node
ppaul@k8s2001:~$ cat /etc/hosts
127.0.0.1	localhost
10.64.0.14	k8s2001.tx.labnet	k8s2001
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

K8s Installation

K8s Configuration

References

Conclusion