GithubHelp home page GithubHelp logo

aws-master-node-and-worker-node-setup's Introduction

AWS Kubernetes Master & Worker Node

Command for Master & Worker node

sudo su
apt-get update

Now install for https package

apt-get install apt-transport-https

Now install docker on all Master & Worker nodes

apt install docker.io -y

To check, Whether docker install or not

docker --version
systemctl start docker 
systemctl enable docker

Setup open GPG key

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF

install all package

apt-get update

Install kubelet kubeadm kubectl

apt-get install -y kubelet kubeadm kubectl kubernetes-cni

Booststraping the master node (in Master)

To inittialize k8s Cluster

kubeadm init

COPY THE COMMAND TO RUN IN NODES & SAVE IN NOTEPAD Create both .kube and it's parent directories (-p)

mkdir -p $HOME/.kube

copy configuration to kube directory (in config file)

cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

Provided user permission to config file

chown $(id -u):$(id -g) $HOME/.kube/config

Deploy flannel node network for it's repository path

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml

Configure Worker Node

copy the long code provides my Master In Node now like code given below

e.g-kubeadm join 172.31.6.165:6443 --token kl9fhu.co2n90v3rxtqllrs --discovery-token-ca-cert-hash sha256:b0f8003d23dbf445..............

Go to master And run this commad

kubectl get nodes

aws-master-node-and-worker-node-setup's People

Contributors

rafiul29 avatar

Watchers

 avatar

Forkers

kibria7533

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.