Giter Site home page Giter Site logo

okd-demo-storage's Introduction

okd-demo-storage

Demo of various storage backend used into OKD.

Present various use case running an apache web-server using :

  • Ephemeral storage backend example
  • Volatile storage backend example
  • Persistent storage backend example
  • Distributed storage backend example

Install startx-demo script

You must run this demo in a all-in-one installation of openshift (origin or enterprise). You must also have a nfs external server connected to this node with multiple (at least 3) mountpoints exported and mounted to your openshift installation. For more information see demo requirements.

## switch to root user
sudo su -
## Download startx-demo script
curl -Ls https://goo.gl/a1UakD > /usr/local/bin/startx-demo
## Allow script execution
chmod ugo+x /usr/local/bin/startx-demo
## Setup demo parameters (if not default)
#startx-demo setup cluster <cluster-api-url>
#startx-demo setup project demo-storage
## Start demo installation
startx-demo install

When demo is installed, auto-completion is enabled for startx-demo script and help you using this demo do not hesitate to execute startx-demo --help for information on command and sub-commands availables

Setup demo environment

When you are ready to start a demo, you can follow this sequence to install mandatory resources

## Login using a new developer user (interactive). Could be skipped if install was your previous action.
startx-demo login
## setup and create the openshift project to use (interactive)
startx-demo project demo-storage
## Load images streams and templates in the current project
startx-demo load
## List generic ressources in project
startx-demo get

After you environment setup, you can run one or all demo type according to your demo scenario

Excute ephemeral demo

This demo will show how emptydir storage is handled by openshift infrastructure and how data if preserved and released with as single Pod deployement and no PV storage associated to Pod volume (emptydir).

## Start the ephemeral demo
startx-demo ephemeral start
## Watch openshift ressources and storage content for the ephemeral demo (dynamic)
startx-demo ephemeral watch
## Show openshift ressources for the ephemeral demo
startx-demo ephemeral ps
## Show storage content for the ephemeral demo
startx-demo ephemeral ls
## Delete openshift ressources and storage content for the ephemeral demo (asynchronous)
startx-demo ephemeral delete


## Excute hostpath demo

This demo will show how hostpath storage is handled by openshift infrastructure and how data if preserved and released
with as single Pod deployement and no PV storage associated to Pod volume (hostpath).

```bash
## Start the hostpath demo
startx-demo hostpath start
## Watch openshift ressources and storage content for the hostpath demo (dynamic)
startx-demo hostpath watch
## Show openshift ressources for the hostpath demo
startx-demo hostpath ps
## Show storage content for the hostpath demo
startx-demo hostpath ls
## Delete openshift ressources and storage content for the hostpath demo (asynchronous)
startx-demo hostpath delete

Excute volatile demo

This demo will show how PV storage is handled by openshift infrastructure and how data if preserved and released with a single Pod lifecycle using a persistent storage defined as a Recycle reclaim policy and a ReadWriteOnce access mode.

## Start the volatile demo
startx-demo volatile start
## Watch openshift ressources and storage content for the volatile demo (dynamic)
startx-demo volatile watch
## Show openshift ressources for the volatile demo
startx-demo volatile ps
## Show storage content for the volatile demo
startx-demo volatile ls
## Delete openshift ressources and storage content for the volatile demo (asynchronous)
startx-demo volatile delete

Excute resilient demo

This demo will show how PV storage is handled by openshift infrastructure and how data if preserved and released with a single Pod lifecycle using a persistent storage defined as a Retain reclaim policy and a ReadWriteOnce access mode.

## Start the resilient demo
startx-demo resilient start
## Watch openshift ressources and storage content for the resilient demo (dynamic)
startx-demo resilient watch
## Show openshift ressources for the resilient demo
startx-demo resilient ps
## Show storage content for the resilient demo
startx-demo resilient ls
## Delete openshift ressources and storage content for the resilient demo (asynchronous)
startx-demo resilient delete

Excute distributed demo

This demo will show how PV storage is handled by openshift infrastructure and how data if preserved and released with a multiple Pod lifecycle using a persistent storage defined as a Retain reclaim policy and a ReadWriteMany access mode.

## Start the distributed demo
startx-demo distributed start
## Watch openshift ressources and storage content for the distributed demo (dynamic)
startx-demo distributed watch
## Show openshift ressources for the distributed demo
startx-demo distributed ps
## Show storage content for the distributed demo
startx-demo distributed ls
## Delete openshift ressources and storage content for the distributed demo (asynchronous)
startx-demo distributed delete

close this demo

## Remove all resource and project
startx-demo delete
# Remove all resource, project and demo script
#startx-demo delete all

okd-demo-storage's People

Contributors

startxfr avatar kempfu avatar

Watchers

James Cloos avatar Aymen A. 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.