Code Monkey home page Code Monkey logo

kubeadm-init-script's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.