GithubHelp home page GithubHelp logo

kubernetesinstallation's Introduction

Kubernetes Installation

I wish for this repo to help someone out there who is struggling with deploying k8 on an on-prem cluster.

These are some of the things you should know.

For administration:

  • Install the lens application: it makes life easy
  • Create a tunnel into the server and connect to your control place port

Lens link: https://k8slens.dev/

In order to connect lens to your cluster, you need to download your config file. Depending on which OS you use, in your home directory create a .kube folder and put that file there. Make sure if its a remote server its using a public IP and an open port on the network.

ssh -fNL <port>:x.x.x.x:<port> <server credentials> e.g [email protected]

On your local machine check the tunnel like this

sudo netstat -nltp | grep <port>

Note:

  • K8 does not come preinstalled with network ability or ability to mount volumes, this has to be done manually by the k8 admin.

Follow this process:

Server:

  • Install docker
  • Install kubectl, kubeadm, kubelet and containerd
  • Install flannel for the network of the pods
  • Install nfs server for dynamic provisioning of volume.

Client

  • Install docker
  • Install kubectl, kubeadm, kubelet
  • Install nfs-common to helm mount the folders on the master

For my use case I employed flannel for my network and not calico because I honestly could not figure out the way to install the later, but I am willing to learn more.

kubernetesinstallation's People

Contributors

atwine avatar

Watchers

 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.