GithubHelp home page GithubHelp logo

vg-kubernetes's Introduction

vg-kubernetes

Description

Automatically deploy Kubernetes in an isolated environment on top of VirtualBox to test containers with persistent applications using ScaleIO. This is intended for testing functionality of Kubernetes 1.9 and how it can utilize ScaleIO as a storage platform via the csi-scaleio plugin.

Environment Details:

  • Three CentOS 7.3 nodes
  • Kubernetes 1.9.2
  • ScaleIO 2.0.1

Requirements:

  • VirtualBox 5
  • Vagrant
  • 8GB+ memory

Usage

Set the following environment variables depending on your needs:

  • K8S_VERSION - Default is 1.9.2. Set to version tag of Kubernetes release you would like to install.
  • K8S_CSI - Default is true. Set to false if you want to use Kubernetes with CSI disabled or if you want to use the built-in scaleio driver.
  • NODE_MEMORY - Default is 3072. Recommended memory is at least 1024MB for node01 and node02. Master will always use 2048MB
  • SCALEIO_INSTALL - Default is true. If true will deploy a 3-node ScaleIO cluster.
  • VERIFY_FILES - Default is true. This will verify the ScaleIO package is available for download.

Start cluster in 3 steps:

  1. git clone https://github.com/thecodeteam/vagrant
  2. cd vagrant/kubernetes
  3. vagrant up (if you have more than one Vagrant Provider on your machine run vagrant up --provider virtualbox instead)

SSH

To get into any of the nodes, run the following from the vagrant/kubernetes directory:

  • vagrant ssh master
  • vagrant ssh node01
  • vagrant ssh node02.

Kubernetes Example

  1. vagrant up
  2. vagrant ssh master
  3. ./tmux.sh
  4. kubectl apply -f csi-scaleio
  5. ./pvc-create.sh vol01
  6. kubectl get pvc
  7. kubectl get pv
  8. kubectl apply -f redis01.yaml

ScaleIO GUI

The ScaleIO GUI is automatically extracted and put into the vagrant/kubernetes/scaleio-gui directory, just run run.sh and it should start up. You will need Java JRE as a dependency. Connect to your instance at 192.168.50.11 with the credentials admin/Scaleio123

Troubleshooting

If anything goes wrong during the deployment, run vagrant destroy -f to remove all the VMs and then vagrant up again to restart the deployment.

Contribution Rules

Create a fork of the project into your own repository. Make all your necessary changes and create a pull request with a description on what was added or removed and details explaining the changes in lines of code. If approved, project owners will merge it.

Support

Please file bugs and issues on the GitHub issues page. This is to help keep track and document everything related to this repo. For general discussions and further support you can join the {code} Community Slack and ask questions in the #kubernetes, #project-csi, and #scaleio channels. The code and documentation are released with no warranties or SLAs and are intended to be supported through a community driven process.

vg-kubernetes's People

Stargazers

Ministry avatar Roberto Esparza avatar

Watchers

Andrew Kutz avatar James Cloos avatar Clint Kitson avatar  avatar  avatar

Forkers

botranvan

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.