Giter Club home page Giter Club logo

local-k8-cluster's Introduction

Kubernetes Cluster using Vagrant

Hit the Star! ⭐

If you are planning to use this DevOps-Observability FOSS Stack repo for learning, please hit the star. Thanks!

Setup

  1. After cloning, as prerequisite install the vagrant & hypervisor on your local ubuntu machine

    $ sudo apt-get update
    $ sudo apt-get install vagrant
    $ sudo apt-get install virtualbox
  2. Once you've installed both we can spinup the vm's using vagrant

    $ vagrant up

    This will take sometime, Since new vm's will be booted & bootstrapped using the script common.sh for installing crio, kubeadm, kubelet, kubectl with version of 1.28 k8's installed.

  3. Once it's done. Let's initialize the masternode.

    $ vagrant ssh master-node
    $ kubeadm init --config=kubeadm-config.yaml

    This will take sometime, After getting a successfull initialization message

    To start using your cluster, you need to run the following as a regular user:

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

Alternatively, if you are the root user, you can run:

  export KUBECONFIG=/etc/kubernetes/admin.conf

Use the join command in the other 2 vm's

local-k8-cluster's People

Contributors

alex-philip5 avatar

Forkers

justin23293

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.