Giter Site home page Giter Site logo

k8s-vm's Introduction

[WIP] Deploy a K8s cluster using VMs on a Baremetal Machine

The scripts can be used to

  • create a kubernetes cluster with a master and one or more minion nodes
  • deploy istio and the sample bookinfo service
  • destroy a kubernetes cluster

PREREQUISITE of The Baremetal Machine

  • ubuntu 16.04
  • apt-get install -y vncviewer vim-gnome qemu-system libvirt-bin libvirt-dev qemu-kvm xterm cloud-guest-utils libguestfs-tools
  • an interface dedicated for the VM's dataplane

CREATE A KUBERNETES CLUSTER

  • sudo bash
  • cd to the directory where the scritps reside
  • ./create_cluster.sh <nodes-desc-file> <dataplane interface> [<istio>]
  • ./create_v6_cluster.sh <nodes-desc-file> <dataplane interface> [<istio>]

For v6 cluster, see v6-host-cluster.txt for an example of nodes-desc-file For v4 cluster, see host-cluster.txt for an example of nodes-desc-file

DESTROY A KUBERNETES CLUSTER

./destroy_cluster.sh

CREATE a KUBERNETES FEDERATION

./create-k8s-fed.sh <fed-def.txt>

The fed-def.txt file defines the command lines to start k8s clusters. Once example is shown in below:

host-cluster.txt enp9s0 
kube-cluster2.txt enp9s0 

k8s-vm's People

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.