Skip to content

skywood123/kubernetes-installation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

kubernetes-installation

Script to setup kubernetes worker node

For a more complete documentation, please refer to official documentation kubernetes.

Environment preparation for the Kubernetes

This is tested on freshly installed ubuntu server 18.04.

git clone https://github.com/skywood123/kubernetes-installation.git
cd kubernetes-installation
sudo bash kubernetes_environment.sh

Summary tasks done in this script:

  • Enable br_netfilter module
  • Disable swap
  • Install container runtime (Docker)
  • Install kubeadm,kubectl,kubelet (1.19.3)
  • Install NFS client

To join as worker node, get this command from the cluster adminstrator or the master node.

This command is used by Kubernetes worker node to join the cluster.

kubeadm join 1.2.3.4:6443 --token yabc8ek.p1wphafasdasdasd \
    --discovery-token-ca-cert-hash sha256:335d15fa24ce5359asdasdasd

To get this command at master node, use the following command.

kubeadm token create --print-join-command

(Optional) Setting up single node Kubernetes master node

To deploy a new cluster with single master node, master.sh can be used.

bash kubernetes_master.sh

(Optional) Setting up high availability (HA) master nodes

To setup HA master nodes, here are some reference links.

About

Script to setup kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages