Giter Site home page Giter Site logo

kubernetes-installation's Introduction

KUBERNETES INSTALLATION STEPS

STEP 1: MASTER NODE INSTALLATION

COMMANDS:

git clone https://github.com/artisantek/kubernetes-installation
cd kubernetes-installation
sudo sh installk8s-1.23.8.sh

STEP 2: Kubernetes node template is now ready create an AMI from this instance to create worker nodes

To create an AMI from an instance

  1. Right-click on the instance you want to use as the basis for your AMI or Click-on Actions button.
  2. Action --> Image --> Create Image

Once the Ami is available (usually it takes 2-8 minutes to get ready), create 2 instances with t2.micro to create worker nodes.

STEP 3: Login back to Master instance created in STEP 1

Initializing Master Server [root user]

sudo su
kubeadm init

Note: Copy the command along with token generated and keep it in a separate file, we need to run this command on worker nodes

Configuring Kube [ubuntu user]

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

Installing a CNI network on master node [ubuntu user]

sudo sysctl net.bridge.bridge-nf-call-iptables=1
kubectl apply -f https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml
kubectl get nodes

STEP 4: Initialize WORKER NODES [ssh to worker nodes created from STEP 2]

sudo su --> To goto root user
kubeadm join <TOKEN> [Command from STEP 3] --> To connect worker node to Master

STEP 5: Login back to Master instance created in STEP 1

kubectl get nodes

kubernetes-installation's People

Contributors

artisantek avatar

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.