Giter Club home page Giter Club logo

install_k8s's Introduction

Install a 3 node (1 control plane,2 worker) cluster

1) Install helm for package management and etcdctl (only on Master)

sudo apt update
sudo apt install etcd-client
sudo snap install helm --classic

2) install containerd CRI

sudo install_cri.sh

3) install kubetools

sudo install_kubetools.sh

4) Run Kubeadm on Master

sudo kubeadm init

5) Install the network plugin Calico and check for pod status in the kube-system namesapce

kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml

6) Get the token from the Master to run on the worker nodes

sudo kubeadm token create --print-join-command

7) install metric servers

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# check the pods on the kube-system namespace
# edit the deploy
kubectl -n kube-system edit deploy/metrics-server
# add the following  in spec.templates.spec.containers.args
--kubelet-insecure-tls
--kubelet-preferred-address-type=InternalIP,ExternalIP,Hostname

# check the logs of the metrics-server pod should say "generating selfsigned cert"

# test the metric output
kubectl top pods --all-namespace

8) install ingress nginx

helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespace 

install_k8s's People

Contributors

notfrannco avatar

Watchers

 avatar

Forkers

rodrigomatto

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.