Skip to content

Latest commit

 

History

History
57 lines (51 loc) · 1.75 KB

README.md

File metadata and controls

57 lines (51 loc) · 1.75 KB

Kubeadm-init-script

What is it?

This is a collection of bash script to create k8s cluster on numbers of physical machine.

System Information

Master node

Linux 
aisf-orchestrator 
5.4.0-132-generic 
#148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Worker node

Linux 
aisf-fog 
5.4.0-131-generic 
#147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux 
aisf-edge 
5.4.0-124-generic 
#140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux 
aisf-cloud 
5.4.0-126-generic 
#142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

How to run it?

⚠️ The following step should be run in root mode, and be careful

Master node

  1. Run bash install.sh to install k8s utilities
  2. Run bash master.sh to create cluster
  3. Run cat kubeadm-init.log to see the token, hash token and ip information (this will be used later on).

Worker node

  1. Run bash install.sh to install k8s utilities
  2. Create token.sh with the following content
    export CONTROL_PLANE_IP=<according to kubeadm-init.log>
    export TOKEN=<according to kubeadm-init.log>
    export HASH_TOKEN=<according to kubeadm-init.log>
    
  3. Run source token.sh to load the environment variable
  4. Run bash worker.sh to join the cluster

Command detail explanation

Check following blogs and give some clap if you like it.