This is a collection of bash script to create k8s cluster on numbers of physical machine.
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
⚠️ The following step should be run in root mode, and be careful
Master node
- Run
bash install.sh
to install k8s utilities - Run
bash master.sh
to create cluster - Run
cat kubeadm-init.log
to see the token, hash token and ip information (this will be used later on).
Worker node
- Run
bash install.sh
to install k8s utilities - Create
token.sh
with the following contentexport CONTROL_PLANE_IP=<according to kubeadm-init.log> export TOKEN=<according to kubeadm-init.log> export HASH_TOKEN=<according to kubeadm-init.log>
- Run
source token.sh
to load the environment variable - Run
bash worker.sh
to join the cluster
Check following blogs and give some clap if you like it.